Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 825 for assertequal (0.09 sec)

  1. src/test/java/org/codelibs/core/io/SerializeUtilTest.java

            assertEquals("1", b.length, a.length);
            assertEquals("2", "1", b[0]);
            assertEquals("3", "2", b[1]);
        }
    
        /**
         * @throws Exception
         */
        public void testObjectAndBinary() throws Exception {
            final String o = "hoge";
            final byte[] binary = SerializeUtil.fromObjectToBinary(o);
            assertEquals(o, SerializeUtil.fromBinaryToObject(binary));
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        assertEquals(expected, view);
        assertEquals(expected.asRanges(), view.asRanges());
        assertEquals(expected.isEmpty(), view.isEmpty());
    
        if (!expected.isEmpty()) {
          assertEquals(expected.span(), view.span());
        }
    
        for (int i = MIN_BOUND - 1; i <= MAX_BOUND + 1; i++) {
          assertEquals(expected.contains(i), view.contains(i));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertTrue;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Equivalence;
    import com.google.common.collect.Iterables;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

            assertEquals(date, cal.getTime());
        }
    
        /**
         *
         * @throws Exception
         */
        @Test
        public void testLocalize() throws Exception {
            final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("JST"));
            final Calendar local = CalendarConversionUtil.localize(calendar);
            assertEquals(TimeZone.getDefault(), local.getTimeZone());
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

              @Override
              public void run() {
                runCalled.getAndIncrement();
              }
            },
            directExecutor());
        list.execute();
        assertEquals(1, runCalled.get());
        list.execute();
        assertEquals(1, runCalled.get());
      }
    
      public void testExecute_idempotentConcurrently() throws InterruptedException {
        final CountDownLatch okayToRun = new CountDownLatch(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            String basedir = localRepo.getBasedir();
    
            assertFalse(basedir.endsWith("/"));
            assertFalse(basedir.endsWith("\\"));
    
            assertEquals(localRepoDir, new File(basedir));
    
            assertEquals(localRepoDir.getPath(), basedir);
        }
    
        @Inject
        DefaultMetadataSource defaultMetadataSource;
    
        @Inject
        SwitchableMetadataSource switchableMetadataSource;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      public void testSize() throws IOException {
        assertEquals(bytes.length, source.size());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        // test that we can get the size even if skip() isn't supported
        assertEquals(bytes.length, new TestByteSource(bytes, SKIP_THROWS).size());
    
        // test that we can get the size even if available() always returns zero
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

        checksum.update(bytes, 0, bytes.length);
        long value = checksum.getValue();
    
        String toString = "name";
        HashFunction func = new ChecksumHashFunction(supplier, 32, toString);
        assertEquals(toString, func.toString());
        assertEquals(value, func.hashBytes(bytes).padToLong());
      }
    
      private static void assertHash32(
          int expected, ImmutableSupplier<Checksum> supplier, String input) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 30 14:33:12 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

                return ("{" + c + "}").toCharArray();
              }
            };
        EscaperAsserts.assertBasic(wrappingEscaper);
        // '[' and '@' lie either side of [A-Z].
        assertEquals("{[}FOO{@}BAR{]}", wrappingEscaper.escape("[FOO@BAR]"));
      }
    
      public void testSafeRange_maxLessThanMin() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 07 23:02:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/PipeTest.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.tests;
    
    
    import static org.junit.Assert.assertEquals;
    
    import java.io.IOException;
    import java.util.Collection;
    import java.util.Map;
    
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.4K bytes
    - Viewed (0)
Back to top