Changeset 3687
- Timestamp:
- Apr 26, 2010, 9:08:06 AM (13 years ago)
- Location:
- trunk/client/servlet/test
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/test/build.xml
r2597 r3687 38 38 <property name="dist" location="dist" /> 39 39 <property name="test" location="test" /> 40 <property environment="env"/> 41 <path id="classpath"> 42 <fileset dir="../../external"> 43 <include name="**/*.jar" /> 44 </fileset> 45 46 <dirset dir="${build}" /> 47 48 </path> 49 40 50 <path id="classpath"> 41 51 <fileset dir="../../../api/external"> … … 43 53 </fileset> 44 54 <dirset dir="../build" /> 45 <dirset dir="../../../api/core/build" /> 46 <dirset dir="../../../api/core/test/build" /> <!-- Includes PropertiesFile --> 47 <dirset dir="../../../api/waf/build" /> 55 <pathelement location="${env.CATALINA_HOME}/webapps/proteios/WEB-INF/lib"/> 56 <pathelement location="${env.CATALINA_HOME}/webapps/proteios/WEB-INF/classes"/> 48 57 <dirset dir="${build}" /> 49 58 </path> … … 55 64 <target name="compile"> 56 65 <mkdir dir="${build}" /> 66 <copy file="${src}/test.properties" todir="${build}" /> 57 67 <javac encoding="ISO-8859-1" srcdir="${src}" destdir="${build}" classpathref="classpath" debug="true" deprecation="true"> 58 68 <compilerarg value="-Xlint:unchecked" /> … … 78 88 All tests should run quietly unless something goes wrong. 79 89 --> 80 <junit printsummary=" false" haltonfailure="true" forkmode="once" reloading="false">81 <formatter type="brief" usefile="false"/>90 <junit printsummary="true" haltonfailure="false" forkmode="once" reloading="false"> 91 <formatter type="brief" /> 82 92 <classpath refid="classpath" /> 83 93 <batchtest> 84 94 <fileset dir="${build}"> 85 <include name="**/*Test.class" /> 86 </fileset> 87 <fileset dir="${build}"> 88 <include name="**/Test*.class" /> 95 <include name="**/*Test*.class" /> 89 96 </fileset> 90 97 </batchtest> -
trunk/client/servlet/test/src/org/proteios/FileLocatorTest.java
r2597 r3687 77 77 { 78 78 FileLocator local = new FileLocator(); 79 List<File> files = local.find(dir, true, Pattern 80 .compile(".*\\.ext\\.jar")); 79 List<File> files = local.find(dir, true, Pattern.compile("corrupt_mzdata.xml")); 81 80 assertNotNull(files); 82 assertEquals( 2, files.size());81 assertEquals(1, files.size()); 83 82 // 84 files = local.find(dir, false, Pattern.compile(" .*\\.ext\\.jar"));83 files = local.find(dir, false, Pattern.compile("no_such_file")); 85 84 assertNotNull(files); 86 85 assertEquals(0, files.size()); 87 //88 files = local.find(dir, true, Pattern.compile(".*\\.xml"));89 assertNotNull(files);90 assertEquals(5, files.size());91 //92 files = local.find(dir, true, Pattern.compile(".*"));93 assertNotNull(files);94 assertEquals(8, files.size());95 86 } 96 87 … … 119 110 FileLocator local = new FileLocator(); 120 111 List<File> files = local.find(dir, true, Pattern 121 .compile(" helloWorld\\.ext\\.jar"));112 .compile("myExtension.*\\.ext\\.jar")); 122 113 assertEquals(1, files.size()); 123 114 List<JarEntry> result = local.find(files.get(0), Pattern 124 115 .compile(".*\\.class")); 125 116 assertNotNull(result); 126 assertEquals( 1, result.size());117 assertEquals(3, result.size()); 127 118 } 128 119 } -
trunk/client/servlet/test/src/org/proteios/PropertiesFile2.java
r1916 r3687 46 46 * ftp://bioinfo.thep.lu.se/proteios 47 47 */ 48 public static final String TEST_DATA = "test.data ";48 public static final String TEST_DATA = "test.data.url"; 49 49 50 50 -
trunk/client/servlet/test/src/test.properties
r2597 r3687 1 1 # $Id$ 2 2 3 # Copyright (C) 2007 Gregory Vincic3 # Copyright (C) 2007 Olle Mansson 4 4 5 5 # This file is part of Proteios … … 23 23 # Copy this file to test.properties and make necessary configuration 24 24 # before running the tests. 25 26 test.data = file:///home/leo/gregory/workspace/proteios-trunk/testData 25 26 # Html output directory (relative to $test.build) 27 test.html.out=./html_out 28 29 # Webunit 30 proteios.url=http://localhost:8080/proteios/app 31 test.username=demo 32 test.password=demo 33 number.of.users=20 34 number.of.iterations=5 35 load.time=500 36 37 # TestMzDataExporterOnly (database integer id of PeakListSet to export) 38 peaklistset.id.to.test=1 39 40 # Test data input directory url 41 # If local, "file://" + absolute path 42 test.data.url=file:///scratch/leo/gregory/proteiosData/testData
Note: See TracChangeset
for help on using the changeset viewer.