- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 185 for _new (0.12 sec)
-
src/test/java/org/codelibs/core/convert/ByteConversionUtilTest.java
/** * @author higa * */ public class ByteConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToByte() throws Exception { assertEquals(new Byte("100"), ByteConversionUtil.toByte("100")); } /** * @throws Exception */ public void testToPrimitiveByte() 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/convert/LongConversionUtilTest.java
/** * @author higa * */ public class LongConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToLong() throws Exception { assertEquals(new Long("1000"), LongConversionUtil.toLong("1,000")); } /** * @throws Exception */ public void testToPrimitiveLong() 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/convert/FloatConversionUtilTest.java
/** * @author higa * */ public class FloatConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToFloat() throws Exception { assertEquals(new Float("1000.5"), FloatConversionUtil.toFloat("1,000.5")); } /** * @throws Exception */ public void testToPrimitiveFloat() 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/timer/TimeoutManagerTest.java
TimeoutManager.getInstance().clear(); } /** * @throws Exception */ public void testExpired() throws Exception { TimeoutTask task = TimeoutManager.getInstance().addTimeoutTarget(new TimeoutTarget() { public void expired() { System.out.println("expired"); expiredCount++; } }, 1, 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) -
src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java
exception.expect(ClIllegalArgumentException.class); exception.expectMessage(is("[ECL0009]argument[o] is illegal. because class java.lang.Object.")); BinaryConversionUtil.toBinary(new Object()); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/LruHashMapTest.java
/** * @author taichi */ public class LruHashMapTest { /** * @throws Exception */ @Test public void testAll() throws Exception { final LruHashMap<String, String> lru = new LruHashMap<String, String>(3); lru.put("aaa", "111"); lru.put("bbb", "222"); lru.put("ccc", "333"); assertThat(lru.get("aaa"), is("111")); Iterator<String> i = lru.keySet().iterator();
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java
TimeZone.setDefault(null); } /** * @throws Exception */ @Test public void testToCalendar() throws Exception { final Date date = new Date(); final Calendar cal = CalendarConversionUtil.toCalendar(date); assertEquals(date, cal.getTime()); } /** * * @throws Exception */ @Test
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) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
throw new IllegalBlockSizeRuntimeException(e); } catch (final BadPaddingException e) { throw new BadPaddingRuntimeException(e); } finally { offerDecryptoCipher(cipher); } return decrypted; } public String decryptoText(final String text) { try { return new String(decrypto(Base64Util.decode(text)), charsetName);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
*/ @Test public void testCopyBeanToBean_converter() throws Exception { final Bean bean = new Bean(); bean.aaa = "1,000"; final Bean2 bean2 = new Bean2(); BeanUtil.copyBeanToBean(bean, bean2, converter(new NumberConverter("#,##0"))); assertThat(bean2.aaa, is(new Integer(1000))); } /** * @throws Exception */ @Test
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 34.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java
*/ @Test public void testIsAncestor() throws Exception { final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null); final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1); final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2); assertThat(ClassLoaderUtil.isAncestor(cl3, cl2), is(true));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3K bytes - Viewed (0)