mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
promoted char sequence first
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3261 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+7
@@ -19,6 +19,7 @@ package org.springframework.core.convert.support;
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import static junit.framework.Assert.assertNull;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -218,6 +219,12 @@ public class DefaultConversionTests {
|
||||
assertEquals(Locale.ENGLISH, conversionService.convert("en", Locale.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringToString() {
|
||||
String str = "test";
|
||||
assertSame(str, conversionService.convert(str, String.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNumberToNumber() {
|
||||
assertEquals(Long.valueOf(1), conversionService.convert(Integer.valueOf(1), Long.class));
|
||||
|
||||
Reference in New Issue
Block a user