Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for testConstructor2 (0.07 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      }
    
      /** constructor initializes to given value */
      public void testConstructor() {
        for (double x : VALUES) {
          AtomicDouble a = new AtomicDouble(x);
          assertBitEquals(x, a.get());
        }
      }
    
      /** default constructed initializes to zero */
      public void testConstructor2() {
        AtomicDouble a = new AtomicDouble();
        assertBitEquals(0.0, a.get());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        double[] a = null;
        assertThrows(NullPointerException.class, () -> new AtomicDoubleArray(a));
      }
    
      /** constructor with array is of same size and has all elements */
      public void testConstructor2() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES);
        assertEquals(VALUES.length, aa.length());
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(VALUES[i], aa.get(i));
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      }
    
      /** constructor initializes to given value */
      public void testConstructor() {
        for (double x : VALUES) {
          AtomicDouble a = new AtomicDouble(x);
          assertBitEquals(x, a.get());
        }
      }
    
      /** default constructed initializes to zero */
      public void testConstructor2() {
        AtomicDouble a = new AtomicDouble();
        assertBitEquals(0.0, a.get());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        double[] a = null;
        assertThrows(NullPointerException.class, () -> new AtomicDoubleArray(a));
      }
    
      /** constructor with array is of same size and has all elements */
      public void testConstructor2() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES);
        assertEquals(VALUES.length, aa.length());
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(VALUES[i], aa.get(i));
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

            public void scheduledTask(@CronExpression String schedule) {
                // Method for testing parameter annotation
            }
        }
    
        private static class TestConstructor {
            private final String schedule;
    
            public TestConstructor(@CronExpression String schedule) {
                this.schedule = schedule;
            }
    
            public String getSchedule() {
                return schedule;
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/curl/CurlResponseTest.java

    import org.junit.Test;
    
    /**
     * Test class for CurlResponse.
     * Tests response handling, header operations, and content access.
     */
    public class CurlResponseTest {
    
        @Test
        public void testConstructor() {
            CurlResponse response = new CurlResponse();
            assertNotNull(response);
        }
    
        @Test
        public void testHttpStatusCode() {
            CurlResponse response = new CurlResponse();
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/reflect/InvokableTest.java

        }
        return methods.build();
      }
    
      private static String typeName(Class<?> type) {
        return type.isArray() ? typeName(type.getComponentType()) + "[]" : type.getName();
      }
    
      public void testConstructor() throws Exception {
        Invokable<A, A> invokable = A.constructor();
        assertTrue(invokable.isPublic());
        assertFalse(invokable.isPackagePrivate());
        assertFalse(invokable.isAbstract());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/curl/CurlRequestTest.java

    import org.junit.Test;
    
    /**
     * Test class for CurlRequest.
     * Tests the fluent API, parameter handling, and request configuration.
     */
    public class CurlRequestTest {
    
        @Test
        public void testConstructor() {
            String url = "https://example.com";
            CurlRequest request = new CurlRequest(Method.GET, url);
    
            assertEquals(Method.GET, request.method());
            assertEquals("UTF-8", request.encoding());
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              IllegalAccessException,
              InvocationTargetException,
              FactoryMethodReturnsNullException {
        if (!Modifier.isAbstract(cls.getModifiers())) {
          nullPointerTester.testConstructors(cls, visibility);
        }
        nullPointerTester.testStaticMethods(cls, visibility);
        if (hasInstanceMethodToTestNulls(cls, visibility)) {
          Object instance = instantiate(cls);
          if (instance != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 32.5K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      public void testPrivateClass() {
        NullPointerTester tester = new NullPointerTester();
        for (Constructor<?> constructor :
            PrivateClassWithPrivateConstructor.class.getDeclaredConstructors()) {
          tester.testConstructor(constructor);
        }
      }
    
      private interface Foo<T> {
        void doSomething(T bar, Integer baz);
      }
    
      private static class StringFoo implements Foo<String> {
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 47.9K bytes
    - Click Count (0)
Back to Top