Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/test/mock
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31858/input/javasrc/biz/xsoftware/test/mock
Modified Files:
TestMockCreator.java
Log Message:
change build template
Index: TestMockCreator.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/test/mock/TestMockCreator.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TestMockCreator.java 22 Nov 2006 16:46:22 -0000 1.12
--- TestMockCreator.java 5 Dec 2007 04:55:31 -0000 1.13
***************
*** 4,7 ****
--- 4,9 ----
import java.io.IOException;
+ import java.util.logging.Level;
+ import java.util.logging.Logger;
import junit.framework.TestCase;
***************
*** 25,29 ****
public class TestMockCreator extends TestCase {
! //private final static Logger log = Logger.getLogger(TestMockCreator.class.getName());
/**
--- 27,31 ----
public class TestMockCreator extends TestCase {
! private final Logger log = Logger.getLogger(TestMockCreator.class.getName());
/**
***************
*** 68,72 ****
fail("Should have failed with ExpectFailedException");
} catch(ExpectFailedException e) {
! //gulp
}
}
--- 70,74 ----
fail("Should have failed with ExpectFailedException");
} catch(ExpectFailedException e) {
! log.log(Level.INFO, e.getMessage());
}
}
***************
*** 91,95 ****
m.expect("callMeFirst");
fail("should have thrown exception");
! } catch(ExpectFailedException e) {}
}
--- 93,99 ----
m.expect("callMeFirst");
fail("should have thrown exception");
! } catch(ExpectFailedException e) {
! log.log(Level.INFO, e.getMessage());
! }
}
***************
*** 117,121 ****
l.callMeSecond("dummy");
fail("should have thrown IOException");
! } catch(IOException e) {}
}
--- 121,127 ----
l.callMeSecond("dummy");
fail("should have thrown IOException");
! } catch(IOException e) {
! log.log(Level.INFO, e.getMessage());
! }
}
***************
*** 150,153 ****
--- 156,160 ----
fail("This should throw an exception");
} catch(IllegalArgumentException e) {
+ log.log(Level.INFO, e.getMessage());
}
}
***************
*** 228,231 ****
--- 235,239 ----
fail("should have thrown exception");
} catch(IllegalArgumentException e) {
+ log.log(Level.INFO, e.getMessage());
}
}
***************
*** 239,242 ****
--- 247,251 ----
fail("should have thrown exception");
} catch(IllegalArgumentException e) {
+ log.log(Level.INFO, e.getMessage());
}
}
|