Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 287 for testDate (1.02 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

      @Test fun setDate() {
        val expected = Date(1000)
        val headers =
          Headers
            .Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/BigIntegerConversionUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class BigIntegerConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToBigIntegerForEmptyString() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 960 bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class ShortConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToShort() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/IoTestCase.java

        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
            File testFile = new File(testFileUrl.toURI());
            testDir = testFile.getParentFile(); // the testdata directory
          } catch (Exception ignore) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. guava-gwt/test/com/google/common/GwtTestSuite.java

    import com.google.gwt.junit.tools.GWTTestSuite;
    import java.io.IOException;
    import junit.framework.Test;
    import junit.framework.TestCase;
    
    /**
     * Runs all _gwt tests. Grouping them into a suite is much faster than running each as a one-test
     * "suite," as the per-suite setup is expensive.
     */
    public class GwtTestSuite extends TestCase {
      public static Test suite() throws IOException {
        GWTTestSuite suite = new GWTTestSuite();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/ModifierUtilTest.java

    package org.codelibs.core.lang;
    
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.util.HashMap;
    import java.util.Map;
    
    import junit.framework.TestCase;
    
    /**
     * @author shot
     */
    public class ModifierUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testIsPublic() throws Exception {
            final Field f = Hoge.class.getDeclaredField("s");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/xml/SAXParserFactoryUtilTest.java

    import junit.framework.TestCase;
    
    import org.codelibs.core.io.ResourceUtil;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    
    /**
     * {@link SAXParserFactoryUtil}のテストです。
     *
     * @author koichik
     */
    public class SAXParserFactoryUtilTest extends TestCase {
    
        boolean included;
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java

     */
    package org.codelibs.core.convert;
    
    import java.text.DecimalFormatSymbols;
    import java.util.Locale;
    
    import junit.framework.TestCase;
    
    import org.codelibs.core.misc.LocaleUtil;
    
    /**
     * @author shot
     *
     */
    public class NumberConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testConvertNumber_byte() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

    import java.util.Locale;
    import junit.framework.TestCase;
    
    /**
     * Since annotations have some reusability issues that force copy and paste all over the place, it's
     * worth having a test to ensure that all our Feature enums have their annotations correctly set up.
     *
     * @author George van den Driessche
     */
    public class FeatureEnumTest extends TestCase {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/io/TraverserUtilTest.java

            assertThat(set.contains(TraverserUtilTest.class.getName()), is(true));
            assertThat(set.contains(TestCase.class.getName()), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testFromClass_JarFile() throws Exception {
            final Traverser traverser = TraversalUtil.getTraverser(TestCase.class);
            assertThat(traverser, is(notNullValue()));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top