Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for expect (0.2 sec)

  1. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

        }
    
        /**
         * Test method for {@link org.codelibs.core.collection.EmptyIterator#remove()}
         * .
         */
        @Test
        public void testRemove() {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("remove"));
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            emptyIterator.remove();
        }
    
        /**
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/util/BeanMapTest.java

            assertThat(map.get("aaa"), is((Object) 1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet_NotContains() throws Exception {
            exception.expect(IllegalKeyOfBeanMapException.class);
            exception.expectMessage(is("[ECL0016]key[xxx] is not included in this BeanMap : {aaa=1, bbb=2}."));
            final BeanMap map = new BeanMap();
            map.put("aaa", 1);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

        @Test
        public void testCopyMapToBean_SrcNull() {
            exception.expect(NullArgumentException.class);
            exception.expectMessage(is("[ECL0008]argument[src] is null."));
            BeanUtil.copyMapToBean(null, new Object());
        }
    
        /**
         *
         */
        @Test
        public void testCopyBeanToMap_DestNull() {
            exception.expect(NullArgumentException.class);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/misc/AssertionUtilTest.java

        public void testAssertState() {
            exception.expect(ClIllegalStateException.class);
            exception.expectMessage(is("hogeだからです。"));
            assertState(false, "hogeだからです。");
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.misc.AssertionUtil#assertIndex(boolean, String)} .
         */
        @Test
        public void testAssertIndex() {
            exception.expect(ClIndexOutOfBoundsException.class);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/collection/ArrayIteratorTest.java

            assertThat(itr.next(), equalTo("b"));
            assertThat(itr.next(), equalTo("c"));
        }
    
        /**
         *
         */
        @Test
        public void testNoSuchElement() {
            exception.expect(NoSuchElementException.class);
            exception.expectMessage(is("index=2"));
            final ArrayIterator<Integer> itr = new ArrayIterator<Integer>(new Integer[] { 1, 2 });
            itr.next();
            itr.next();
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("remove"));
            final Vector<String> vector = new Vector<String>();
            vector.add("a");
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

        }
    
        /**
         * Test method for {@link org.seasar.util.collection.ArrayIterator#remove()}
         * .
         */
        @Test
        public void testArrayIteratorRemoveException() {
            exception.expect(ClIllegalStateException.class);
            exception.expectMessage(is("last == -1"));
            ArrayMap<String, String> m = new ArrayMap<String, String>();
            Iterator<Map.Entry<String, String>> i = m.entrySet().iterator();
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java

        /**
         * Test method for
         * {@link org.codelibs.core.convert.BinaryConversionUtil#toBinary(java.lang.Object)}
         * .
         */
        @Test
        public void testToBinaryException() {
            exception.expect(ClIllegalArgumentException.class);
            exception.expectMessage(is("[ECL0009]argument[o] is illegal. because class java.lang.Object."));
            BinaryConversionUtil.toBinary(new Object());
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.convert.CalendarConversionUtil#localize(Calendar)}
         * .
         */
        @Test
        public void testCreateAndCopySrcNull() {
            exception.expect(NullArgumentException.class);
            exception.expectMessage(is("[ECL0008]argument[calendar] is null."));
            CalendarConversionUtil.localize(null);
        }
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.net.MimeTypeUtil#guessContentType(String)} .
         */
        @Test
        public void testGuessContentType() {
            exception.expect(EmptyArgumentException.class);
            exception.expectMessage(is("[ECL0010]argument[path] is null or empty string."));
            MimeTypeUtil.guessContentType(null);
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top