Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for Method (0.14 sec)

  1. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        private void setupValueOfMethod() {
            for (final Method method : propertyType.getMethods()) {
                if (method.isBridge() || method.isSynthetic()) {
                    continue;
                }
                if (ModifierUtil.isStatic(method.getModifiers()) && method.getName().equals("valueOf") && method.getParameterTypes().length == 1
                        && method.getParameterTypes()[0].equals(String.class)) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

            final Method equalsMethod = ClassUtil.getMethod(getClass(), "equals", Object.class);
            assertThat(MethodUtil.isHashCodeMethod(equalsMethod), is(not(true)));
        }
    
        /**
         *
         */
        @Test
        public void testIsToStringMethod() {
            final Method toStringMethod = ClassUtil.getMethod(getClass(), "toString");
            assertThat(MethodUtil.isToStringMethod(toStringMethod), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/ModifierUtil.java

            assertArgumentNotNull("method", method);
    
            return isPublic(method.getModifiers());
        }
    
        /**
         * <code>public</code>かどうか返します。
         *
         * @param field
         *            フィールド。{@literal null}であってはいけません
         * @return パブリックかどうか
         */
        public static boolean isPublic(final Field field) {
            assertArgumentNotNull("field", field);
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/CollectionsUtilTest.java

    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.HashMap;
    
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    public class CollectionsUtilTest {
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.CollectionsUtil#isEmpty(java.util.Collection)}
         * .
         */
        @Test
        public void testIsEmptyCollectionOfQ() {
            Collection<String> c = null;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java

     */
    public class BinaryConversionUtilTest {
    
        /**
         * @see org.junit.rules.ExpectedException
         */
        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        /**
         * Test method for
         * {@link org.codelibs.core.convert.BinaryConversionUtil#toBinary(java.lang.Object)}
         * .
         */
        @Test
        public void testToBinary() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

        /**
         * Test method for
         * {@link org.codelibs.core.collection.EmptyIterator#EmptyIterator()}.
         */
        @Test
        public void testEmptyIterator() {
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            assertThat(emptyIterator, is(notNullValue()));
        }
    
        /**
         * Test method for {@link org.codelibs.core.collection.EmptyIterator#remove()}
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/Hoge.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * @author higa
     *
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ ElementType.TYPE, ElementType.METHOD })
    public @interface Hoge {
    
        /**
         *
         */
        String aaa() default "123";
    
        /**
         *
         */
        String bbb();
    
        /**
         *
         */
        String ccc() default "";
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

            final Calendar local = CalendarConversionUtil.localize(calendar);
            assertEquals(TimeZone.getDefault(), local.getTimeZone());
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.convert.CalendarConversionUtil#localize(Calendar)}
         * .
         */
        @Test
        public void testCreateAndCopySrcNull() {
            exception.expect(NullArgumentException.class);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            assertNull(s);
            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.net.MimeTypeUtil#guessContentType(String)} .
         */
        @Test
        public void testGuessContentType() {
            exception.expect(EmptyArgumentException.class);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/net/UuidUtilTest.java

     */
    package org.codelibs.core.net;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class UuidUtilTest extends TestCase {
    
        /**
         * Test method for {@link org.codelibs.core.net.UuidUtil#create()}.
         */
        public void testCreate() {
            final String uuid = UuidUtil.create();
            System.out.println(uuid);
            final String uuid2 = UuidUtil.create();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
Back to top