Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1:/tmp/cvs-serv7608/src/java-test/org/logicalcobwebs/proxool
Modified Files:
ConfigurationListenerTest.java
Log Message:
better tests
Index: ConfigurationListenerTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/ConfigurationListenerTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ConfigurationListenerTest.java 10 Apr 2003 21:48:58 -0000 1.10
--- ConfigurationListenerTest.java 27 Apr 2003 15:44:19 -0000 1.11
***************
*** 104,107 ****
--- 104,114 ----
mcl2.reset();
+ // This time pass in the properties (WITH change)
+ LOG.debug("Expecting a change now");
+ info.setProperty(ProxoolConstants.VERBOSE_PROPERTY, Boolean.FALSE.toString());
+ DriverManager.getConnection(url, info).close();
+ assertEquals("definitionReceived", true, mcl2.isUpdateReceived());
+ mcl2.reset();
+
// Remove the second listener
ProxoolFacade.removeConfigurationListener(alias, mcl2);
***************
*** 229,232 ****
--- 236,242 ----
Revision history:
$Log$
+ Revision 1.11 2003/04/27 15:44:19 billhorsman
+ better tests
+
Revision 1.10 2003/04/10 21:48:58 billhorsman
enhanced to trap bug where config change event gets fired
|