Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 185 for new (0.08 sec)

  1. src/test/java/org/codelibs/core/exception/ConverterRuntimeExceptionTest.java

     */
    public class ConverterRuntimeExceptionTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final ConverterRuntimeException e = new ConverterRuntimeException("hoge", "xxx", new RuntimeException("cause"));
            System.out.println(e.getMessage());
            assertThat(e.getPropertyName(), is("hoge"));
            assertThat(e.getValue(), is((Object) "xxx"));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/xml/SAXParserUtil.java

            assertArgumentNotNull("handler", handler);
    
            try {
                parser.parse(inputSource, handler);
            } catch (final SAXException e) {
                throw new SAXRuntimeException(e);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link XMLReader}の基本となる実装に特定のプロパティを設定します。
         *
         * @param parser
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/exception/NullArgumentExceptionTest.java

         */
        @Test
        public void testErrorMessage_ja() throws Exception {
            // ## Arrange ##
            Locale.setDefault(Locale.JAPANESE);
            final NullArgumentException nullArgumentException = new NullArgumentException("hoge");
            assertThat(nullArgumentException.getArgName(), is("hoge"));
            assertThat(nullArgumentException.getMessage(), is("[ECL0008]argument[hoge] is null."));
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/stream/StreamUtilTest.java

            assertEquals(0, (int) StreamUtil.stream(o).get(s -> s.toArray().length));
            Map<Object, Object> map = new HashMap<Object, Object>();
            assertEquals(0, (int) StreamUtil.stream(map).get(s -> s.toArray().length));
        }
    
        public void test_ofMap() {
            Map<String, String> map = new HashMap<String, String>();
            map.put("key1", "value1");
            map.put("key2", "value2");
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/IndexedIterator.java

        @Override
        public boolean hasNext() {
            return iterator.hasNext();
        }
    
        @Override
        public Indexed<T> next() {
            return new Indexed<>(iterator.next(), index++);
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/EnumerationIterator.java

         * @return {@link Enumeration}をラップした{@link Iterable}
         */
        public static <T> Iterable<T> iterable(final Enumeration<T> enumeration) {
            assertArgumentNotNull("enumeration", enumeration);
    
            return () -> new EnumerationIterator<>(enumeration);
        }
    
        /**
         * {@link Enumeration}をラップした{@link Iterator}のインスタンスを構築します。
         *
         * @param enumeration
         *            {@link Enumeration}。{@literal null}であってはいけません
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/ByteConversionUtil.java

            } else if (o instanceof String) {
                return toByte((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Byte.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (byte) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (byte) 1 : (byte) 0;
            } else {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

            } else if (o instanceof String) {
                return toInteger((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Integer.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (int) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? 1 : 0;
            } else {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java

            assertArgumentNotNull("target", target);
    
            return FieldUtil.get(field, target);
        }
    
        @Override
        public <T> T getStaticFieldValue() {
            if (!isStatic()) {
                throw new FieldNotStaticRuntimeException(beanDesc.getBeanClass(), fieldName);
            }
            return FieldUtil.get(field);
        }
    
        @Override
        public void setFieldValue(final Object target, final Object value) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        /**
         * @throws Exception
         */
        public void testEncode() throws Exception {
            assertEquals("1", ENCODED_DATA, Base64Util.encode(BINARY_DATA));
            System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' }));
        }
    
        /**
         * @throws Exception
         */
        public void testDecode() throws Exception {
            final byte[] decodedData = Base64Util.decode(ENCODED_DATA);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top