Project

General

Profile

« Previous | Next » 

Revision 608f7100

Added by Cherian Mathew almost 9 years ago

corrected merge to latest snapshot version
updated hibernate config file and test db
setup testing framework with jetty and maven

View differences:

eu.etaxonomy.taxeditor.test/pom.xml
4 4
  <parent>
5 5
    <groupId>eu.etaxonomy</groupId>
6 6
    <artifactId>taxeditor-parent</artifactId>
7
    <version>3.5.2-SNAPSHOT</version>
7
    <version>3.6.1-SNAPSHOT</version>
8 8
  </parent>
9 9
  <modelVersion>4.0.0</modelVersion>
10 10
  <artifactId>eu.etaxonomy.taxeditor.test</artifactId>
......
34 34
        <artifactId>tycho-surefire-plugin</artifactId>
35 35
        <version>${tycho.version}</version>
36 36
        <configuration>
37
          <!-- currently we run only the non-ui unit tests so we don't  the harness-->
37
          <!-- currently we run only the non-ui unit tests so we don't the 
38
            harness -->
38 39
          <!-- <useUIHarness>true</useUIHarness> -->
39 40
          <dependencies>
40
          <!-- This will pull the feature and its dependent plugins into the classpath
41
               for the tests. Note that this requires ALL taxeditor projects to be
42
               installed. -->
41
            <!-- This will pull the feature and its dependent plugins into 
42
              the classpath for the tests. Note that this requires ALL taxeditor projects 
43
              to be installed. -->
43 44
            <dependency>
44 45
              <type>eclipse-feature</type>
45 46
              <artifactId>eu.etaxonomy.taxeditor.feature</artifactId>
......
49 50
          </dependencies>
50 51
        </configuration>
51 52
      </plugin>
53
      <plugin>
54
        <groupId>org.eclipse.jetty</groupId>
55
        <artifactId>jetty-maven-plugin</artifactId>
56
        <version>9.2.9.v20150224</version>
57
        <configuration>
58
          <systemProperties>
59
            <systemProperty>
60
              <name>spring.profiles.active</name>
61
              <value>remoting</value>
62
            </systemProperty>
63
            <systemProperty>
64
              <name>cdm.beanDefinitionFile</name>
65
              <value>${basedir}/src/test/resources/datasources.xml</value>
66
            </systemProperty>
67
            <systemProperty>
68
              <name>cdm.datasource</name>
69
              <value>cdmTest</value>
70
            </systemProperty>
71
          </systemProperties>
72
          <stopPort>9191</stopPort>
73
          <stopKey>jetty-cdm-server</stopKey>
74
          <stopWait>10</stopWait>
75
          <httpConnector>
76
            <port>9090</port>
77
          </httpConnector>
78
          <war>${project.parent.basedir}/eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
79
          <daemon>true</daemon>
80
        </configuration>
81
        <executions>
82
          <execution>
83
            <id>start-jetty</id>
84
            <phase>pre-integration-test</phase>
85
            <goals>
86
              <goal>deploy-war</goal>
87
            </goals>
88
            <configuration>
89
              <scanIntervalSeconds>0</scanIntervalSeconds>              
90
            </configuration>
91
          </execution>
92
          <execution>
93
            <id>stop-jetty</id>
94
            <phase>post-integration-test</phase>
95
            <goals>
96
              <goal>stop</goal>
97
            </goals>
98
          </execution>
99
        </executions>
100
      </plugin>
52 101
    </plugins>
53 102
  </build>
54 103
</project>

Also available in: Unified diff