1 37 package net.sourceforge.cruisecontrol.sourcecontrols; 38 39 import java.io.IOException ; 40 import java.text.SimpleDateFormat ; 41 42 import junit.framework.TestCase; 43 import net.sourceforge.cruisecontrol.CruiseControlException; 44 45 48 public class UCMTest extends TestCase { 49 50 public static final SimpleDateFormat DATE_FMT = new SimpleDateFormat ("yyyy/MM/dd HH:mm:ss"); 51 52 66 protected void setUp() { 67 } 69 70 public void testClearCaseStream() { 71 } 73 74 public void testValidate() { 75 UCM ucmV = new UCM(); 76 77 try { 78 ucmV.validate(); 79 fail("UCM should throw exceptions when required attributes are not set."); 80 } catch (CruiseControlException e) { 81 assertTrue(true); 82 } 83 84 ucmV.setViewPath("path"); 85 ucmV.setStream("branch"); 86 87 try { 88 ucmV.validate(); 89 assertTrue(true); 90 } catch (CruiseControlException e) { 91 fail("UCM should not throw exceptions when required attributes are set."); 92 } 93 } 94 95 public void testOutput() throws IOException { 96 97 } 98 99 public static void main(java.lang.String [] args) { 100 junit.textui.TestRunner.run(UCMTest.class); 101 } 102 103 } 104 | Popular Tags |