|
From: Mikael P. <er...@us...> - 2012-01-12 12:44:46
|
Update of /cvsroot/clearcase-java/net.sourceforge.clearcase.test/src/net/sourceforge/clearcase/tests/output
In directory vz-cvs-4.sog:/tmp/cvs-serv25844/src/net/sourceforge/clearcase/tests/output
Modified Files:
MoveOutputScenarioTest.java
Log Message:
Adding test case for unsuccessful modify when directory is not checked out.
Index: MoveOutputScenarioTest.java
===================================================================
RCS file: /cvsroot/clearcase-java/net.sourceforge.clearcase.test/src/net/sourceforge/clearcase/tests/output/MoveOutputScenarioTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MoveOutputScenarioTest.java 14 Dec 2011 12:25:16 -0000 1.2
--- MoveOutputScenarioTest.java 12 Jan 2012 12:44:44 -0000 1.3
***************
*** 61,64 ****
--- 61,65 ----
}
}
+
/**
* Make sure we can have numbers in path.
***************
*** 79,83 ****
}
}
!
public void testMoveWithMixOfCharactersInPath() {
try {
--- 80,84 ----
}
}
!
public void testMoveWithMixOfCharactersInPath() {
try {
***************
*** 96,98 ****
--- 97,113 ----
}
+ /**
+ *
+ */
+ public void testMovedFailedDueDirNotCheckedout() {
+ String[] cleartoolOutput = new String[] { "cleartool: Error: Can't modify directory \"/vobs/test/app/rsa_ws/workspace/pge\" because it is not checked out." };
+ try {
+ getClearCaseCLI().parserCCOutput(cleartoolOutput);
+ fail();
+ } catch (ClearCaseException e) {
+ assertTrue(e.getErrorCode() == ClearCase.ERROR_DIR_IS_NOT_CHECKED_OUT);
+ }
+
+ }
+
}
|