kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 1880c9980a0f69eac4c7bcf1b704330534496127d7b51828ede75459a3c98ce4 |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2016-03-07 16:52 +01:00 |
| Committer | Olivier Michallat <olim7t@users.noreply.github.com> · 2016-03-07 16:52 +01:00 |
| Parents | afd7556b91bf, 5d32b8f73c46 |
3 files changed
modified driver-core/pom.xml +1 −14
| @@ -352,23 +352,10 @@ | ||
| 352 | 352 | <artifactId>maven-surefire-plugin</artifactId> |
| 353 | 353 | <version>2.16</version> |
| 354 | 354 | <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> | |
| 360 | 356 | <includes> |
| 361 | 357 | <include>**/SSL*Test.java</include> |
| 362 | 358 | </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> | |
| 372 | 359 | </configuration> |
| 373 | 360 | </plugin> |
| 374 | 361 | </plugins> |
modified driver-mapping/src/test/java/com/datastax/driver/mapping/MapperAccessorParamsTest.java +3 −3
| @@ -265,9 +265,9 @@ | ||
| 265 | 265 | |
| 266 | 266 | @Accessor |
| 267 | 267 | 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); | |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | } |
modified pom.xml +35 −0
| @@ -90,6 +90,41 @@ | ||
| 90 | 90 | <javadoc.opts>-Xdoclint:none</javadoc.opts> |
| 91 | 91 | </properties> |
| 92 | 92 | </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> | |
| 93 | 128 | </profiles> |
| 94 | 129 | |
| 95 | 130 | <build> |