Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for assertThat (1.53 sec)

  1. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(hoge.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(hoge.getField(), is(MyBean.class.getDeclaredField("HOGE")));
            assertThat(hoge.getFieldName(), is("HOGE"));
            assertThat(hoge.getFieldType(), is(sameClass(String.class)));
            assertThat(hoge.isPublic(), is(true));
            assertThat(hoge.isStatic(), is(true));
            assertThat(hoge.isFinal(), is(true));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

            assertThat(it.hasNext(), is(true));
    
            final Indexed<String> indexed1 = it.next();
            assertThat(indexed1.getIndex(), is(0));
            assertThat(indexed1.getElement(), is("aaa"));
    
            final Indexed<String> indexed2 = it.next();
            assertThat(indexed2.getIndex(), is(1));
            assertThat(indexed2.getElement(), is("bbb"));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java

            final ClUnsupportedOperationException clUnsupportedOperationException =
                    new ClUnsupportedOperationException("hoge", new NullPointerException());
            assertThat(clUnsupportedOperationException.getMessage(), is("hoge"));
            assertThat(clUnsupportedOperationException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

            assertThat(converter.getAsString(Integer.valueOf("100")), is("100"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsTarget() throws Exception {
            final NumberConverter converter = new NumberConverter("##0");
            assertThat(converter.isTarget(Integer.class), is(true));
            assertThat(converter.isTarget(Timestamp.class), is(not(true)));
        }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java

            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/01/16"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsTarget() throws Exception {
            final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd");
            assertThat(converter.isTarget(java.sql.Date.class), is(true));
            assertThat(converter.isTarget(java.util.Date.class), is(not(true)));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/message/MessageFormatterTest.java

            System.out.println(s);
            assertThat(s, is(notNullValue()));
            assertThat(s, is(equalTo("[EMsgLongSystemName0001]Hoge Hoge")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testDispose() throws Exception {
            DisposableUtil.dispose();
            assertThat(MessageFormatter.initialized, is(not(true)));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        @Test
        public void testConcatName() {
            assertThat(ClassUtil.concatName("aaa", "bbb"), is("aaa.bbb"));
            assertThat(ClassUtil.concatName("aaa", null), is("aaa"));
            assertThat(ClassUtil.concatName("aaa", ""), is("aaa"));
            assertThat(ClassUtil.concatName(null, "bbb"), is("bbb"));
            assertThat(ClassUtil.concatName("", "bbb"), is("bbb"));
            assertThat(ClassUtil.concatName("", "bbb"), is("bbb"));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/CollectionsUtilTest.java

         * .
         */
        @Test
        public void testIsEmptyCollectionOfQ() {
            Collection<String> c = null;
            assertThat(CollectionsUtil.isEmpty(c), is(true));
            c = new ArrayList<String>();
            assertThat(CollectionsUtil.isEmpty(c), is(true));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.CollectionsUtil#isNotEmpty(java.util.Collection)}
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/crypto/CachedCipherTest.java

            final String encrypted1 = cipher1.encryptText(original);
            final String encrypted2 = cipher2.encryptText(original);
    
            assertThat(encrypted1, is(not(encrypted2)));
            assertThat(cipher1.decryptText(encrypted1), is(original));
            assertThat(cipher2.decryptText(encrypted2), is(original));
        }
    
        @Test
        public void testEmptyString() {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top