Elffuss BraidHub

kikocis/java-driver public

Merge pull request #609 from datastax/fix-mapper-reporting

Define isolated profile that disables tests at parent level.
Changeset1880c9980a0f69eac4c7bcf1b704330534496127d7b51828ede75459a3c98ce4
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2016-03-07 16:52 +01:00
CommitterOlivier Michallat <olim7t@users.noreply.github.com> · 2016-03-07 16:52 +01:00
Parentsafd7556b91bf, 5d32b8f73c46

Browse the files at this changeset

3 files changed

modified driver-core/pom.xml +1 −14
@@ -352,23 +352,10 @@
352352 <artifactId>maven-surefire-plugin</artifactId>
353353 <version>2.16</version>
354354 <configuration>
355- <forkCount>1</forkCount>
356- <reuseForks>false</reuseForks>
357- <groups>isolated</groups>
358- <!-- Files containing tests to be included must be added here.
359- this prevents a fork being created for each test class. -->
355+ <skip>false</skip>
360356 <includes>
361357 <include>**/SSL*Test.java</include>
362358 </includes>
363- <reportNameSuffix>isolated</reportNameSuffix>
364- <useFile>false</useFile>
365- <systemPropertyVariables>
366- <cassandra.version>${cassandra.version}</cassandra.version>
367- <ipprefix>${ipprefix}</ipprefix>
368- </systemPropertyVariables>
369- <classpathDependencyExcludes>
370- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
371- </classpathDependencyExcludes>
372359 </configuration>
373360 </plugin>
374361 </plugins>
modified driver-mapping/src/test/java/com/datastax/driver/mapping/MapperAccessorParamsTest.java +3 −3
@@ -265,9 +265,9 @@
265265
266266 @Accessor
267267 public interface UserPhoneAccessor_WrongParameterTypes {
268- @Query("select * from user where key IN (:keys)")
269- // WRONG, should be "where key IN :keys"
270- void findUsersBykeys(@Param("keys") List<Integer> keys);
268+ @Query("select * from user where key IN (?)")
269+ // WRONG, should be "where key IN ?"
270+ void findUsersBykeys(List<Integer> keys);
271271 }
272272
273273 }
modified pom.xml +35 −0
@@ -90,6 +90,41 @@
9090 <javadoc.opts>-Xdoclint:none</javadoc.opts>
9191 </properties>
9292 </profile>
93+ <profile>
94+ <!-- default profile settings for 'isolated' test group, will skip tests unless overriden in child module. -->
95+ <id>isolated</id>
96+ <properties>
97+ <env>default</env>
98+ </properties>
99+ <build>
100+ <plugins>
101+ <plugin>
102+ <groupId>org.apache.maven.plugins</groupId>
103+ <artifactId>maven-surefire-plugin</artifactId>
104+ <version>2.16</version>
105+ <configuration>
106+ <skip>true</skip>
107+ <forkCount>1</forkCount>
108+ <reuseForks>false</reuseForks>
109+ <groups>isolated</groups>
110+ <reportNameSuffix>isolated</reportNameSuffix>
111+ <useFile>false</useFile>
112+ <systemPropertyVariables>
113+ <cassandra.version>${cassandra.version}</cassandra.version>
114+ <ipprefix>${ipprefix}</ipprefix>
115+ </systemPropertyVariables>
116+ <classpathDependencyExcludes>
117+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
118+ </classpathDependencyExcludes>
119+ <!-- This requires includes to be explicitly specified by implementing classes.
120+ This is needed to prevent creating a JVM fork for each test, even those that don't
121+ have the isolated group. -->
122+ <includes/>
123+ </configuration>
124+ </plugin>
125+ </plugins>
126+ </build>
127+ </profile>
93128 </profiles>
94129
95130 <build>