Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for sameClass (0.06 sec)

  1. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

            assertThat(ClassUtil.getPrimitiveClassIfWrapper(String.class), is(sameClass(String.class)));
            assertThat(ClassUtil.getPrimitiveClassIfWrapper(Byte.class), is(sameClass(byte.class)));
        }
    
        /**
         *
         */
        @Test
        public void testGetWrapperClass() {
            assertThat(ClassUtil.getWrapperClass(int.class), is(sameClass(Integer.class)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(parameterizedClassDesc.isParameterizedClass(), is(true));
            assertThat(parameterizedClassDesc.getRawClass(), is(sameClass(Class.class)));
            final MyBean myBean = new MyBean();
            aaa.setFieldValue(myBean, String.class);
            assertThat(aaa.getFieldValue(myBean), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = FieldNotStaticRuntimeException.class)
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/ClassIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Integer.class)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Number.class)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameClass(Object.class)));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.TestUtil.sameClass;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertThat;
    
    import java.lang.reflect.Method;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java

            assertThat(desc.getRawClass(), is(sameClass(Set.class)));
            ParameterizedClassDesc[] args = desc.getArguments();
            assertThat(args.length, is(1));
            assertThat(args[0].getRawClass(), is(sameClass(Integer.class)));
    
            desc = ParameterizedClassDescFactory.createParameterizedClassDesc(method, 1, map);
            assertThat(desc.getRawClass(), is(sameClass(Map.class)));
            args = desc.getArguments();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

         */
        public void testGetKeyTypeOfMap() throws Exception {
            final Field f = ClassUtil.getField(Baz.class, "map");
            assertThat(FieldUtil.getKeyTypeOfMap(f), is(sameClass(String.class)));
            assertThat(FieldUtil.getValueTypeOfMap(f), is(sameClass(Integer.class)));
        }
    
        /**
         *
         */
        public static class Baz {
    
            /** */
            @SuppressWarnings("rawtypes")
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/TestUtil.java

         * のインスタンスかを検証されてしまうのでこれが必要。
         *
         * @param clazz
         *            期待するクラス
         * @return クラスをチェックする{@link Matcher}
         */
        public static Matcher<Object> sameClass(final Class<?> clazz) {
            return is((Object) clazz);
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.TestUtil.sameClass;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.hamcrest.CoreMatchers.notNullValue;
    import static org.hamcrest.CoreMatchers.sameInstance;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/TestLogHandler.java

     *     super.setUp();
     *     handler = new TestLogHandler();
     *     SomeClass.logger.addHandler(handler);
     *     addTearDown(new TearDown() {
     *       public void tearDown() throws Exception {
     *         SomeClass.logger.removeHandler(handler);
     *       }
     *     });
     *   }
     *
     *   public void test() {
     *     SomeClass.foo();
     *     LogRecord firstRecord = handler.getStoredLogRecords().get(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 20:53:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/TestLogHandler.java

     *     super.setUp();
     *     handler = new TestLogHandler();
     *     SomeClass.logger.addHandler(handler);
     *     addTearDown(new TearDown() {
     *       public void tearDown() throws Exception {
     *         SomeClass.logger.removeHandler(handler);
     *       }
     *     });
     *   }
     *
     *   public void test() {
     *     SomeClass.foo();
     *     LogRecord firstRecord = handler.getStoredLogRecords().get(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 20:53:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top