IOCase.isCaseSensitive(IOCase) result is backward
Move test method to proper location.
MODIFY
src/changes/changes.xml
src/changes/changes.xml
@@ -144,6 +144,9 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="IO-484" dev="ggregory" type="fix" due-to="Arturo Bernal">
Change to uppercase variable constant. #323.
</action>
+ <action issue="IO-484" dev="ggregory" type="fix" due-to="David Huang, Gary Gregory">
+ IOCase.isCaseSensitive(IOCase) result is backward #325.
+ </action>
<!-- ADD -->
<action issue="IO-726" dev="ggregory" type="fix" due-to="shollander, Gary Gregory">
Add MemoryMappedFileInputStream #215.

MODIFY
src/test/java/org/apache/commons/io/IOCaseTest.java
src/test/java/org/apache/commons/io/IOCaseTest.java
@@ -287,6 +287,13 @@ public void test_isCaseSensitive() {
assertEquals(!WINDOWS, IOCase.SYSTEM.isCaseSensitive());
}
+ @Test
+ public void test_isCaseSensitive_static() {
+ assertTrue(IOCase.isCaseSensitive(IOCase.SENSITIVE));
+ assertFalse(IOCase.isCaseSensitive(IOCase.INSENSITIVE));
+ assertEquals(!WINDOWS, IOCase.isCaseSensitive(IOCase.SYSTEM));
+ }
+
@Test
public void test_serialization() throws Exception {
assertSame(IOCase.SENSITIVE, serialize(IOCase.SENSITIVE));
@@ -300,11 +307,4 @@ public void test_toString() {
assertEquals("Insensitive", IOCase.INSENSITIVE.toString());
assertEquals("System", IOCase.SYSTEM.toString());
}
-
- @Test
- public void test_isCaseSensitive_static() {
- assertTrue(IOCase.isCaseSensitive(IOCase.SENSITIVE));
- assertFalse(IOCase.isCaseSensitive(IOCase.INSENSITIVE));
- assertEquals(!WINDOWS, IOCase.isCaseSensitive(IOCase.SYSTEM));
- }
}

IOCase.isCaseSensitive(IOCase) result is backward #325

Move test method to proper location.