Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. 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;
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. 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 {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/Tuple5.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) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. 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) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

                    assertThat(path, path.startsWith("junit") || path.startsWith("org/junit") || path.startsWith("org/hamcrest")
                            || path.startsWith("META-INF/") || path.equals("LICENSE-junit.txt"), is(true));
                    assertThat(is, is(notNullValue()));
                    count++;
                } finally {
                    CloseableUtil.close(is);
                }
            });
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                } else if (methodName.startsWith("is")) {
                    if (m.getParameterTypes().length != 0
                            || !m.getReturnType().equals(Boolean.TYPE) && !m.getReturnType().equals(Boolean.class)) {
                        continue;
                    }
                    final String propertyName = StringUtil.decapitalize(methodName.substring(2));
                    setupReadMethod(m, propertyName);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. 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;
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/ArrayUtil.java

            if (array != null) {
                for (int i = fromIndex; i < array.length; ++i) {
                    final Object o = array[i];
                    if (o != null) {
                        if (o.equals(obj)) {
                            return i;
                        }
                    } else if (obj == null) {
                        return i;
    
                    }
                }
            }
            return -1;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/StringUtilTest.java

        public void testEquals() throws Exception {
            assertEquals("1", true, StringUtil.equals("a", "a"));
            assertEquals("2", true, StringUtil.equals(null, null));
            assertEquals("3", false, StringUtil.equals("a", null));
            assertEquals("4", false, StringUtil.equals(null, "a"));
            assertEquals("5", false, StringUtil.equals("a", "b"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top