HHH-2863 : isolate cache integration testing

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14230 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2007-12-07 20:42:12 +00:00
parent bec99b7ec3
commit dd9310207b
1 changed files with 166 additions and 109 deletions

View File

@ -24,11 +24,6 @@
<artifactId>hibernate-core</artifactId> <artifactId>hibernate-core</artifactId>
<version>${version}</version> <version>${version}</version>
</dependency> </dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>hibernate-testing</artifactId>
<version>${version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.jboss.cache</groupId> <groupId>org.jboss.cache</groupId>
<artifactId>jbosscache-core</artifactId> <artifactId>jbosscache-core</artifactId>
@ -36,24 +31,86 @@
<version>[2.0.0.BETA2,)</version> <version>[2.0.0.BETA2,)</version>
--> -->
<version>2.1.0.BETA1</version> <version>2.1.0.BETA1</version>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>${groupId}</groupId>
<artifactId>hibernate-testing</artifactId>
<version>${version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>99.0-does-not-exist</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
<version>99.0-does-not-exist</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl104-over-slf4j</artifactId>
<version>1.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
<scope>test</scope>
</dependency>
<!-- these are optional on core :( and needed for testing -->
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.4.GA</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.1_3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm-attrs</artifactId>
<version>1.5.3</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<testResources> <testResources>
<testResource> <testResource>
<filtering>false</filtering> <filtering>false</filtering>
<directory>src/test/java</directory> <directory>src/test/java</directory>
<includes> <includes>
<include>**/*.xml</include> <include>**/*.xml</include>
</includes> </includes>
</testResource> </testResource>
<testResource> <testResource>
<filtering>true</filtering> <filtering>true</filtering>
<directory>src/test/resources</directory> <directory>src/test/resources</directory>
</testResource> </testResource>
</testResources> </testResources>
<plugins> <plugins>
<plugin> <plugin>
@ -63,97 +120,97 @@
<source>1.5</source> <source>1.5</source>
<target>1.5</target> <target>1.5</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.jboss.maven.plugins</groupId> <groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-test-ext-plugin</artifactId> <artifactId>maven-test-ext-plugin</artifactId>
<version>1.1.0</version> <version>1.1.0</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>extend</goal> <goal>extend</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<systemProperties> <systemProperties>
<property> <property>
<name>hibernate.test.validatefailureexpected</name> <name>hibernate.test.validatefailureexpected</name>
<value>true</value> <value>true</value>
</property> </property>
<!-- If you find the testsuite runs very slowly, there <!-- If you find the testsuite runs very slowly, there
may be problems with multicast on the interface may be problems with multicast on the interface
JGroups uses by default. You can try to resolve JGroups uses by default. You can try to resolve
this by uncommenting this property and setting the this by uncommenting this property and setting the
value to an interface where you know multicast works value to an interface where you know multicast works
<property> <property>
<name>jgroups.bind_addr</name> <name>jgroups.bind_addr</name>
<value>192.168.0.1</value> <value>192.168.0.1</value>
</property> </property>
--> -->
<!-- There are problems with multicast and IPv6 on some <!-- There are problems with multicast and IPv6 on some
OS/JDK combos, so we tell Java to use IPv4. If you OS/JDK combos, so we tell Java to use IPv4. If you
have problems with multicast when running the tests have problems with multicast when running the tests
you can try setting this to 'false', although typically you can try setting this to 'false', although typically
that won't be helpful. that won't be helpful.
--> -->
<property> <property>
<name>java.net.preferIPv4Stack</name> <name>java.net.preferIPv4Stack</name>
<value>true</value> <value>true</value>
</property> </property>
</systemProperties> </systemProperties>
<!-- If all else fails and you cannot get multicast working <!-- If all else fails and you cannot get multicast working
properly for the testsuite, uncomment this to disable the properly for the testsuite, uncomment this to disable the
tests. tests.
<skipExec>true</skipExec> <skipExec>true</skipExec>
--> -->
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles> <profiles>
<!-- HSQLDB is the default (eventually move to H2) --> <!-- HSQLDB is the default (eventually move to H2) -->
<profile> <profile>
<id>hsqldb</id> <id>hsqldb</id>
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
</activation> </activation>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>hsqldb</groupId> <groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId> <artifactId>hsqldb</artifactId>
<version>1.8.0.2</version> <version>1.8.0.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId> <artifactId>slf4j-log4j12</artifactId>
<version>1.4.2</version> <version>1.4.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
<version>1.2.14</version> <version>1.2.14</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cglib</groupId> <groupId>cglib</groupId>
<artifactId>cglib</artifactId> <artifactId>cglib</artifactId>
<version>2.1_3</version> <version>2.1_3</version>
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<db.dialect>org.hibernate.dialect.HSQLDialect</db.dialect> <db.dialect>org.hibernate.dialect.HSQLDialect</db.dialect>
<jdbc.driver>org.hsqldb.jdbcDriver</jdbc.driver> <jdbc.driver>org.hsqldb.jdbcDriver</jdbc.driver>
<jdbc.url>jdbc:hsqldb:target/test/db/hsqldb/hibernate</jdbc.url> <jdbc.url>jdbc:hsqldb:target/test/db/hsqldb/hibernate</jdbc.url>
<jdbc.user>sa</jdbc.user> <jdbc.user>sa</jdbc.user>
<jdbc.pass/> <jdbc.pass/>
<jdbc.isolation/> <jdbc.isolation/>
</properties> </properties>
</profile> </profile>
</profiles> </profiles>
</project> </project>