Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 207 for converter_ (0.1 sec)

  1. src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java

         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final DateConverter converter = new DateConverter("yyyy/MM/dd");
            final Date result = (Date) converter.getAsObject("2008/01/16");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/01/16"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/converter/TimeConverterTest.java

         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final TimeConverter converter = new TimeConverter("HH:mm:ss");
            final java.sql.Time result = (java.sql.Time) converter.getAsObject("12:34:56");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("12:34:56"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Enums.java

            constants = populateCache(enumClass);
          }
          return constants;
        }
      }
    
      /**
       * Returns a serializable converter that converts between strings and {@code enum} values of type
       * {@code enumClass} using {@link Enum#valueOf(Class, String)} and {@link Enum#name()}. The
       * converter will throw an {@code IllegalArgumentException} if the argument is not the name of any
       * enum constant in the specified enum.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java

        }
    
    
        @Override
        public String toString () {
            return new String(
                "NetShareEnumResponse[" + super.toString() + ",status=" + getStatus() + ",converter=" + this.converter + ",entriesReturned="
                        + getNumEntries() + ",totalAvailableEntries=" + this.totalAvailableEntries + "]");
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertThat;
    
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Map;
    
    import org.codelibs.core.beans.converter.DateConverter;
    import org.codelibs.core.beans.converter.NumberConverter;
    import org.codelibs.core.exception.NullArgumentException;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
     * @author higa
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java

        }
        public String toString() {
            return new String( "NetServerEnum2Response[" +
                    super.toString() +
                    ",status=" + status +
                    ",converter=" + converter +
                    ",entriesReturned=" + numEntries +
                    ",totalAvailableEntries=" + totalAvailableEntries +
                    ",lastName=" + lastName + "]" );
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testStringConverter_convert() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0.0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1.0")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0")).isEqualTo((Double) 0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

    import static org.junit.Assert.assertThat;
    
    import java.sql.Time;
    import java.sql.Timestamp;
    import java.util.Date;
    
    import org.codelibs.core.beans.converter.DateConverter;
    import org.codelibs.core.beans.converter.NumberConverter;
    import org.codelibs.core.exception.ConverterRuntimeException;
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class CopyOptionsTest {
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

            final NumberConverter converter = new NumberConverter("##0");
            assertThat(converter.getAsObject("100"), is((Object) Long.valueOf("100")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsString() throws Exception {
            final NumberConverter converter = new NumberConverter("##0");
            assertThat(converter.getAsString(new Integer("100")), is("100"));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java

         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd");
            final java.sql.Date result = (java.sql.Date) converter.getAsObject("2008/01/16");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/01/16"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top