- Sort Score
- Result 10 results
- Languages All
Results 21 - 27 of 27 for assertEquals (0.25 sec)
-
src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java
/** * @throws Exception */ public void testToShort() throws Exception { assertEquals(new Short("1000"), ShortConversionUtil.toShort("1,000")); } /** * @throws Exception */ public void testToPrimitiveShort() throws Exception { assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000")); } /** * @throws Exception */
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/URLUtilTest.java
assertEquals("jar", URLUtil.toCanonicalProtocol("wsjar")); assertEquals("jar", URLUtil.toCanonicalProtocol("jar")); assertEquals("zip", URLUtil.toCanonicalProtocol("zip")); assertEquals("file", URLUtil.toCanonicalProtocol("file")); } /** * @throws Exception */ public void testToFile() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/FieldUtilTest.java
*/ package org.codelibs.core.lang; import static org.codelibs.core.TestUtil.sameClass; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import java.lang.reflect.Field; import java.util.Collection; import java.util.Map; import org.codelibs.core.exception.ClIllegalArgumentException;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/jar/JarFileUtilTest.java
final File f = new File("/Program Files/foo.jar"); final URL url = new URL("jar:" + f.toURI().toURL() + "!/"); final String root = new File("/").getCanonicalPath(); assertEquals(root + "Program Files" + File.separator + "foo.jar", JarFileUtil.toJarFilePath(url)); } /** * @throws Exception */ public void testRelativePath() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/StringUtilTest.java
assertEquals("", StringUtil.substringToLast("abc", "c")); assertEquals("c", StringUtil.substringToLast("abc", "b")); assertEquals("c", StringUtil.substringToLast("abcbc", "b")); assertEquals("abc", StringUtil.substringToLast("abc", "")); assertEquals("abc", StringUtil.substringToLast("abc", null)); assertEquals("abc", StringUtil.substringToLast("abc", "dddd"));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 12K bytes - Viewed (0) -
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
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); assertEquals("1", BINARY_DATA.length, decodedData.length);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java
package org.codelibs.core.beans.impl; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import java.math.BigDecimal; import java.net.URL; import java.sql.Timestamp; import java.util.Calendar; import java.util.Date;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11.1K bytes - Viewed (0)