Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
b5c38b29
Commit
b5c38b29
authored
9 years ago
by
Sean Busbey
Browse files
Options
Downloads
Patches
Plain Diff
[cassandra2] switch to maven profile to skip tests under jdk7.
parent
1aa8c33b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cassandra2/pom.xml
+20
-0
20 additions, 0 deletions
cassandra2/pom.xml
cassandra2/src/test/java/com/yahoo/ycsb/db/CassandraCQLClientTest.java
+0
-5
0 additions, 5 deletions
...c/test/java/com/yahoo/ycsb/db/CassandraCQLClientTest.java
with
20 additions
and
5 deletions
cassandra2/pom.xml
+
20
−
0
View file @
b5c38b29
...
...
@@ -31,6 +31,11 @@ LICENSE file.
<name>
Cassandra 2.1+ DB Binding
</name>
<packaging>
jar
</packaging>
<properties>
<!-- Skip tests by default. will be activated by jdk8 profile -->
<skipTests>
true
</skipTests>
</properties>
<dependencies>
<!-- CQL driver -->
<dependency>
...
...
@@ -58,4 +63,19 @@ LICENSE file.
<scope>
test
</scope>
</dependency>
</dependencies>
<profiles>
<!-- Cassandra 2.2+ requires JDK8 to run, so none of our tests
will work unless we're using jdk8.
-->
<profile>
<id>
jdk8-tests
</id>
<activation>
<jdk>
1.8
</jdk>
</activation>
<properties>
<skipTests>
false
</skipTests>
</properties>
</profile>
</profiles>
</project>
This diff is collapsed.
Click to expand it.
cassandra2/src/test/java/com/yahoo/ycsb/db/CassandraCQLClientTest.java
+
0
−
5
View file @
b5c38b29
...
...
@@ -41,7 +41,6 @@ import com.yahoo.ycsb.workloads.CoreWorkload;
import
org.cassandraunit.CassandraCQLUnit
;
import
org.cassandraunit.dataset.cql.ClassPathCQLDataSet
;
import
org.junit.After
;
import
org.junit.Assume
;
import
org.junit.Before
;
import
org.junit.ClassRule
;
import
org.junit.Test
;
...
...
@@ -68,10 +67,6 @@ public class CassandraCQLClientTest {
@Before
public
void
setUp
()
throws
Exception
{
// check that this is Java 8+
int
javaVersion
=
Integer
.
parseInt
(
System
.
getProperty
(
"java.version"
).
split
(
"\\."
)[
1
]);
Assume
.
assumeTrue
(
javaVersion
>=
8
);
session
=
cassandraUnit
.
getSession
();
Properties
p
=
new
Properties
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment