Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for equalTo (0.15 sec)

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

            @SuppressWarnings("unchecked")
            Map<String, String> copy = (ArrayMap<String, String>) map.clone();
            assertThat(map.equals(copy), is(true));
            assertThat(map.equals(null), is(not(true)));
            map.put("3", "test3");
            assertThat(map.equals(copy), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToString() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayIteratorTest.java

         *
         */
        @Test
        public void testNext() {
            final ArrayIterator<String> itr = new ArrayIterator<String>("a", "b", "c");
            assertThat(itr.next(), equalTo("a"));
            assertThat(itr.next(), equalTo("b"));
            assertThat(itr.next(), equalTo("c"));
        }
    
        /**
         *
         */
        @Test
        public void testNoSuchElement() {
            exception.expect(NoSuchElementException.class);
    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)
  3. src/test/java/org/codelibs/core/message/MessageFormatterTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.message;
    
    import static org.hamcrest.CoreMatchers.equalTo;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.hamcrest.CoreMatchers.notNullValue;
    import static org.junit.Assert.assertThat;
    
    import java.util.Locale;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

                    continue;
                }
                if (ModifierUtil.isStatic(method.getModifiers()) && method.getName().equals("valueOf") && method.getParameterTypes().length == 1
                        && method.getParameterTypes()[0].equals(String.class)) {
                    valueOfMethod = method;
                    break;
                }
            }
        }
    
    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)
  5. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

     */
    public class MethodUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsEqualsMethod() throws Exception {
            final Method equalsMethod = ClassUtil.getMethod(getClass(), "equals", Object.class);
            assertThat(MethodUtil.isEqualsMethod(equalsMethod), is(true));
            final Method hashCodeMethod = ClassUtil.getMethod(getClass(), "hashCode");
    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)
  6. src/main/java/org/codelibs/core/misc/Tuple4.java

                if (other.value1 != null) {
                    return false;
                }
            } else if (!value1.equals(other.value1)) {
                return false;
            }
            if (value2 == null) {
                if (other.value2 != null) {
                    return false;
                }
            } else if (!value2.equals(other.value2)) {
                return false;
            }
            if (value3 == null) {
    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)
  7. src/test/java/org/codelibs/core/net/UuidUtilTest.java

        public void testCreate() {
            final String uuid = UuidUtil.create();
            System.out.println(uuid);
            final String uuid2 = UuidUtil.create();
            System.out.println(uuid2);
            assertFalse(uuid.equals(uuid2));
        }
    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/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

                if ("true".equalsIgnoreCase(s)) {
                    return Boolean.TRUE;
                } else if ("false".equalsIgnoreCase(s)) {
                    return Boolean.FALSE;
                } else if (s.equals("0")) {
                    return Boolean.FALSE;
                } else {
                    return Boolean.TRUE;
                }
            } else {
                return Boolean.TRUE;
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

            if (methodDesc == null) {
                return null;
            }
            final Object value = methodDesc.invoke(annotation);
            if (value == null || "".equals(value)) {
                return null;
            }
            return value;
        }
    
    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/main/java/org/codelibs/core/beans/util/CopyOptions.java

            }
            if (!includePropertyNames.isEmpty()) {
                for (final String includeName : includePropertyNames) {
                    if (includeName.equals(name)) {
                        for (final String excludeName : excludePropertyNames) {
                            if (excludeName.equals(name)) {
                                return false;
                            }
                        }
                        return true;
                    }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 18.6K bytes
    - Viewed (0)
Back to top