You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/02/06 15:20:01 UTC
[commons-io] branch master updated: IOCase.isCaseSensitive(IOCase) result is backward #325
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new ddb6bbe IOCase.isCaseSensitive(IOCase) result is backward #325
ddb6bbe is described below
commit ddb6bbe02c67f41f82cd76cef31bd4284e59378d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 6 10:19:59 2022 -0500
IOCase.isCaseSensitive(IOCase) result is backward #325
Move test method to proper location.
---
src/changes/changes.xml | 3 +++
src/test/java/org/apache/commons/io/IOCaseTest.java | 14 +++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 6fa1867..362f6a5 100644
--- a/src/changes/changes.xml
+++ b/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.
diff --git a/src/test/java/org/apache/commons/io/IOCaseTest.java b/src/test/java/org/apache/commons/io/IOCaseTest.java
index a3e3aed..aa77db9 100644
--- a/src/test/java/org/apache/commons/io/IOCaseTest.java
+++ b/src/test/java/org/apache/commons/io/IOCaseTest.java
@@ -288,6 +288,13 @@ public class IOCaseTest {
}
@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));
assertSame(IOCase.INSENSITIVE, serialize(IOCase.INSENSITIVE));
@@ -300,11 +307,4 @@ public class IOCaseTest {
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));
- }
}