Skip to content

Commit 315c16d

Browse files
committed
relaxed test conditions
1 parent 5f781e6 commit 315c16d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

org.springframework.context/src/test/java/org/springframework/context/support/ConversionServiceFactoryBeanTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ public void conversionServiceInApplicationContext() {
9797
ResourceTestBean tb = ctx.getBean("resourceTestBean", ResourceTestBean.class);
9898
assertTrue(tb.getResource() instanceof ClassPathResource);
9999
assertTrue(tb.getResourceArray().length > 0);
100-
assertTrue(tb.getResourceArray()[0] instanceof FileSystemResource);
100+
assertTrue(tb.getResourceArray()[0] instanceof ClassPathResource);
101101
assertTrue(tb.getResourceMap().size() == 1);
102102
assertTrue(tb.getResourceMap().get("key1") instanceof ClassPathResource);
103103
assertTrue(tb.getResourceArrayMap().size() == 1);
104104
assertTrue(tb.getResourceArrayMap().get("key1").length > 0);
105-
assertTrue(tb.getResourceArrayMap().get("key1")[0] instanceof FileSystemResource);
105+
assertTrue(tb.getResourceArrayMap().get("key1")[0] instanceof ClassPathResource);
106106
}
107107

108108

org.springframework.context/src/test/java/org/springframework/context/support/conversionService.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616
<bean id="resourceTestBean" class="org.springframework.beans.ResourceTestBean">
1717
<property name="resource" value="org/springframework/context/support/conversionService.xml"/>
18-
<property name="resourceArray" value="org/springframework/context/support/*.xml"/>
18+
<property name="resourceArray" value="org/springframework/context/support/conversionService.xml"/>
1919
<property name="resourceMap">
2020
<map>
2121
<entry key="key1" value="org/springframework/context/support/conversionService.xml"/>
2222
</map>
2323
</property>
2424
<property name="resourceArrayMap">
2525
<map>
26-
<entry key="key1" value="org/springframework/context/support/*.xml"/>
26+
<entry key="key1" value="org/springframework/context/support/conversionService.xml"/>
2727
</map>
2828
</property>
2929
</bean>

0 commit comments

Comments
 (0)