Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added testng.xml, changed previous test classes to unit tests
- Loading branch information
Showing
5 changed files
with
103 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.trifork.riak; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
import java.io.IOException; | ||
|
||
import static org.testng.FileAssert.fail; | ||
|
||
/** | ||
* Verifies that Riak is running. | ||
* | ||
* @author reiks, Jan 5, 2011 | ||
*/ | ||
@Test(groups = "db", sequential = true) | ||
public class RiakRunningTest { | ||
|
||
public void testIsRunning() { | ||
try | ||
{ | ||
RiakClient client = new RiakClient("127.0.0.1"); | ||
client.ping(); | ||
} | ||
catch (IOException e) | ||
{ | ||
fail("Unable to connect to Riak (host: 127.0.0.1, port: " + RiakConnection.DEFAULT_RIAK_PB_PORT + ")"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | ||
|
||
<suite name="riak-java-pb-client-suite" verbose="4"> | ||
<test name="run-all"> | ||
<groups> | ||
<run> | ||
<include name="unit" /> | ||
<exclude name="db" /> | ||
</run> | ||
</groups> | ||
<packages> | ||
<package name="com.trifork.riak.*"/> | ||
</packages> | ||
</test> | ||
</suite> |