|
From: Mikael P. <er...@us...> - 2011-12-14 12:25:19
|
Update of /cvsroot/clearcase-java/net.sourceforge.clearcase.test/src/net/sourceforge/clearcase/tests/output
In directory vz-cvs-4.sog:/tmp/cvs-serv17911/src/net/sourceforge/clearcase/tests/output
Modified Files:
MoveOutputScenarioTest.java
Log Message:
Fix for Bug 3451495
Index: MoveOutputScenarioTest.java
===================================================================
RCS file: /cvsroot/clearcase-java/net.sourceforge.clearcase.test/src/net/sourceforge/clearcase/tests/output/MoveOutputScenarioTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MoveOutputScenarioTest.java 30 Sep 2011 05:26:26 -0000 1.1
--- MoveOutputScenarioTest.java 14 Dec 2011 12:25:16 -0000 1.2
***************
*** 43,45 ****
--- 43,98 ----
}
+ /**
+ * Make sure a move can handle paths containg space.
+ */
+ public void testMoveWithSpaceInPath() {
+ try {
+
+ String[] cleartoolOutput = new String[] { "Moved \"\\vob\\test\\app mde\\hello.c\" to \"\\vob\\test\\app mde\\src\\hello.c\"." };
+ ClearCaseElementState[] cces = getClearCaseCLI().parserCCOutput(
+ cleartoolOutput);
+ assertNotNull("State output should not be null", cces);
+ assertEquals("Expected 1 element in states", 1, cces.length);
+ assertTrue(cces[0].state == ClearCase.MOVED);
+ assertEquals("\\vob\\test\\app mde\\hello.c", cces[0].element);
+
+ } catch (Exception e) {
+ fail();
+ }
+ }
+ /**
+ * Make sure we can have numbers in path.
+ */
+ public void testMoveWithNumberInPath() {
+ try {
+
+ String[] cleartoolOutput = new String[] { "Moved \"\\vob\\test\\appmde1\\hello.c\" to \"\\vob\\test\\appmde1\\src\\hello.c\"." };
+ ClearCaseElementState[] cces = getClearCaseCLI().parserCCOutput(
+ cleartoolOutput);
+ assertNotNull("State output should not be null", cces);
+ assertEquals("Expected 1 element in states", 1, cces.length);
+ assertTrue(cces[0].state == ClearCase.MOVED);
+ assertEquals("\\vob\\test\\appmde1\\hello.c", cces[0].element);
+
+ } catch (Exception e) {
+ fail();
+ }
+ }
+
+ public void testMoveWithMixOfCharactersInPath() {
+ try {
+
+ String[] cleartoolOutput = new String[] { "Moved \"\\vob\\test\\appmde1_2\\hello.c\" to \"\\vob\\test\\appmde1_2\\src\\hello.c\"." };
+ ClearCaseElementState[] cces = getClearCaseCLI().parserCCOutput(
+ cleartoolOutput);
+ assertNotNull("State output should not be null", cces);
+ assertEquals("Expected 1 element in states", 1, cces.length);
+ assertTrue(cces[0].state == ClearCase.MOVED);
+ assertEquals("\\vob\\test\\appmde1_2\\hello.c", cces[0].element);
+
+ } catch (Exception e) {
+ fail();
+ }
+ }
+
}
|