Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for assertThat (0.04 sec)

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

         */
        @Test
        public void testDefaultString() {
            assertThat(StringUtil.defaultString(null), is(""));
            assertThat(StringUtil.defaultString(""), is(""));
            assertThat(StringUtil.defaultString("aaa"), is("aaa"));
        }
    
        /**
         *
         */
        @Test
        public void testDefaultStringDefaultStr() {
            assertThat(StringUtil.defaultString(null, "NULL"), is("NULL"));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. 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)
  3. src/test/java/org/codelibs/core/io/FileUtilTest.java

         */
        @Test
        public void testFileToFile() throws Exception {
            final byte[] bytes = readBytes(inputFile);
            assertThat(bytes, is("あいうえお".getBytes("UTF-8")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testReadUTF8() throws Exception {
            assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ"));
        }
    
        /**
         * Test isPathSafe with safe path
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top