[Join-cvs] join1/src/test/org/figure8/join/businessobjects/environment/persistence EnvironmentMapp
Brought to you by:
lbroudoux
|
From: Laurent B. <lbr...@us...> - 2007-04-08 19:51:09
|
Update of /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv17009/businessobjects/environment/persistence Modified Files: EnvironmentMappingDaoTest.java LogicalEnvironmentDaoTest.java ParameterDaoTest.java ParameterValueDaoTest.java PhysicalEnvironmentDaoTest.java ResourceVersionDaoTest.java Log Message: Fixing Checkstyle errors Index: LogicalEnvironmentDaoTest.java =================================================================== RCS file: /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence/LogicalEnvironmentDaoTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LogicalEnvironmentDaoTest.java 25 Jul 2006 13:24:32 -0000 1.1 --- LogicalEnvironmentDaoTest.java 8 Apr 2007 19:51:05 -0000 1.2 *************** *** 26,30 **** * JUnit test case for testing LogicalEnvironmentDao implementation * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version Revision$$ */ public class LogicalEnvironmentDaoTest extends SpringTestCase{ --- 26,30 ---- * JUnit test case for testing LogicalEnvironmentDao implementation * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version $Revision$ */ public class LogicalEnvironmentDaoTest extends SpringTestCase{ *************** *** 33,37 **** /** Spring configuration files */ ! private String[] configLocations = new String[]{"classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; --- 33,38 ---- /** Spring configuration files */ ! private String[] configLocations = new String[]{ ! "classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; *************** *** 65,69 **** Step step = new Step("logEnvCreation", 1); Release release = new Release("1.0", 1, 0, new Date()); ! LogicalEnvironment env = new LogicalEnvironment("creationKey", "creationLabel", "creationDescription", "managerId", step, release); int size = getLogicalEnvironmentListSize(); stepDao.save(step); --- 66,71 ---- Step step = new Step("logEnvCreation", 1); Release release = new Release("1.0", 1, 0, new Date()); ! LogicalEnvironment env = new LogicalEnvironment("creationKey", "creationLabel", "creationDescription", ! "managerId", step, release); int size = getLogicalEnvironmentListSize(); stepDao.save(step); *************** *** 79,83 **** Step step = new Step("logEnvFindByKey", 2); Release release = new Release("2.0", 2, 0, new Date()); ! LogicalEnvironment env = new LogicalEnvironment("findByKey", "findByLabel", "findByDescription", "managerId", step, release); int size = getLogicalEnvironmentListSize(); stepDao.save(step); --- 81,86 ---- Step step = new Step("logEnvFindByKey", 2); Release release = new Release("2.0", 2, 0, new Date()); ! LogicalEnvironment env = new LogicalEnvironment("findByKey", "findByLabel", "findByDescription", ! "managerId", step, release); int size = getLogicalEnvironmentListSize(); stepDao.save(step); Index: PhysicalEnvironmentDaoTest.java =================================================================== RCS file: /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence/PhysicalEnvironmentDaoTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PhysicalEnvironmentDaoTest.java 25 Jul 2006 13:24:32 -0000 1.1 --- PhysicalEnvironmentDaoTest.java 8 Apr 2007 19:51:06 -0000 1.2 *************** *** 20,24 **** * JUnit test case for testing PhysicalEnvironmentDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version Revision$$ */ public class PhysicalEnvironmentDaoTest extends SpringTestCase{ --- 20,24 ---- * JUnit test case for testing PhysicalEnvironmentDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version $Revision$ */ public class PhysicalEnvironmentDaoTest extends SpringTestCase{ *************** *** 27,31 **** /** Spring configuration files */ ! private String[] configLocations = new String[]{"classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; --- 27,32 ---- /** Spring configuration files */ ! private String[] configLocations = new String[]{ ! "classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; Index: ParameterValueDaoTest.java =================================================================== RCS file: /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence/ParameterValueDaoTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ParameterValueDaoTest.java 25 Jul 2006 13:24:32 -0000 1.1 --- ParameterValueDaoTest.java 8 Apr 2007 19:51:06 -0000 1.2 *************** *** 26,30 **** * JUnit test case for testing ParameterValueDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version Revision$ */ public class ParameterValueDaoTest extends SpringTestCase{ --- 26,30 ---- * JUnit test case for testing ParameterValueDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version $Revision$ */ public class ParameterValueDaoTest extends SpringTestCase{ *************** *** 33,37 **** /** Spring configuration files */ ! private String[] configLocations = new String[]{"classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; --- 33,38 ---- /** Spring configuration files */ ! private String[] configLocations = new String[]{ ! "classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; *************** *** 149,154 **** for (int i=0; i < values.size(); i++){ ParameterValue foundValue = (ParameterValue)values.get(i); ! assertTrue("Value is one of historical ones", ! "findHistorical".equals(foundValue.getValue()) || "findHistorical-updated".equals(foundValue.getValue())); } } --- 150,155 ---- for (int i=0; i < values.size(); i++){ ParameterValue foundValue = (ParameterValue)values.get(i); ! assertTrue("Value is one of historical ones", "findHistorical".equals(foundValue.getValue()) ! || "findHistorical-updated".equals(foundValue.getValue())); } } Index: ResourceVersionDaoTest.java =================================================================== RCS file: /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence/ResourceVersionDaoTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ResourceVersionDaoTest.java 9 Oct 2006 20:46:44 -0000 1.1 --- ResourceVersionDaoTest.java 8 Apr 2007 19:51:06 -0000 1.2 *************** *** 23,27 **** * JUnit test case for testing ResourceVersionDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version Revision$ */ public class ResourceVersionDaoTest extends SpringTestCase{ --- 23,27 ---- * JUnit test case for testing ResourceVersionDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version $Revision$ */ public class ResourceVersionDaoTest extends SpringTestCase{ *************** *** 30,34 **** /** Spring configuration files */ ! private String[] configLocations = new String[]{"classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; --- 30,35 ---- /** Spring configuration files */ ! private String[] configLocations = new String[]{ ! "classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; *************** *** 104,108 **** for (int i=0; i<versions.size(); i++){ foundVersion = (ResourceVersion)versions.get(i); ! assertTrue("Found a correct ResourceVersion", "version1".equals(foundVersion.getName()) || "version2".equals(foundVersion.getName())); } versions = dao.getResourceVersionsByType(type2); --- 105,110 ---- for (int i=0; i<versions.size(); i++){ foundVersion = (ResourceVersion)versions.get(i); ! assertTrue("Found a correct ResourceVersion", "version1".equals(foundVersion.getName()) ! || "version2".equals(foundVersion.getName())); } versions = dao.getResourceVersionsByType(type2); *************** *** 111,115 **** for (int i=0; i<versions.size(); i++){ foundVersion = (ResourceVersion)versions.get(i); ! assertTrue("Found a correct ResourceVersion", "version3".equals(foundVersion.getName()) || "version4".equals(foundVersion.getName())); } } --- 113,118 ---- for (int i=0; i<versions.size(); i++){ foundVersion = (ResourceVersion)versions.get(i); ! assertTrue("Found a correct ResourceVersion", "version3".equals(foundVersion.getName()) ! || "version4".equals(foundVersion.getName())); } } Index: EnvironmentMappingDaoTest.java =================================================================== RCS file: /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence/EnvironmentMappingDaoTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EnvironmentMappingDaoTest.java 25 Jul 2006 13:24:32 -0000 1.1 --- EnvironmentMappingDaoTest.java 8 Apr 2007 19:51:05 -0000 1.2 *************** *** 28,32 **** * JUnit test case for testing EnvironmentMappingDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version Revision$ */ public class EnvironmentMappingDaoTest extends SpringTestCase{ --- 28,32 ---- * JUnit test case for testing EnvironmentMappingDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version $Revision$ */ public class EnvironmentMappingDaoTest extends SpringTestCase{ *************** *** 35,39 **** /** Spring configuration files */ ! private String[] configLocations = new String[]{"classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; --- 35,40 ---- /** Spring configuration files */ ! private String[] configLocations = new String[]{ ! "classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; Index: ParameterDaoTest.java =================================================================== RCS file: /cvsroot/join/join1/src/test/org/figure8/join/businessobjects/environment/persistence/ParameterDaoTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ParameterDaoTest.java 25 Jul 2006 13:24:32 -0000 1.1 --- ParameterDaoTest.java 8 Apr 2007 19:51:06 -0000 1.2 *************** *** 20,24 **** * JUnit test case for testing ParameterDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version Revision$ */ public class ParameterDaoTest extends SpringTestCase{ --- 20,24 ---- * JUnit test case for testing ParameterDao implementation. * @author <a href="mailto:lau...@fr...">Laurent Broudoux</a> ! * @version $Revision$ */ public class ParameterDaoTest extends SpringTestCase{ *************** *** 27,31 **** /** Spring configuration files */ ! private String[] configLocations = new String[]{"classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; --- 27,32 ---- /** Spring configuration files */ ! private String[] configLocations = new String[]{ ! "classpath:/org/figure8/join/businessobjects/environment/persistence/spring.xml"}; |