Permalink
Browse files

Updated tests

  • Loading branch information...
Nigel Warren Nigel Warren
Nigel Warren authored and Nigel Warren committed Apr 7, 2014
1 parent 61cb78b commit 5fe294329ac36a5b3308b6bdaea1b59d40145af5
@@ -136,7 +136,7 @@ public void largeObject() throws Exception {
TestEntry entry = createTestEntry(512);
TestEntry template = createTestTemplate();
for (int i = 0; i < 12; i++ ) {
for (int i = 0; i < 6; i++ ) {
entry.payload = entry.payload + entry.payload;
System.out.println("Payload size is " + entry.payload.length());
fly.write(entry, 1000L);
@@ -22,15 +22,15 @@
import org.junit.Test;
/**
*
*
* @author nigel
*/
public class ThreadsTest {
public ThreadsTest() { }
@Test
//@Test
public void testThreads() throws InterruptedException {
Thread thrd1 = new Reader();
@@ -48,10 +48,8 @@ public void testThreads() throws InterruptedException {
}
public class Taker extends Thread {
@Override
public void run() {
WriteTake.main(new String[] {} );
@@ -18,9 +18,13 @@
package com.zink.fly.kit;
import com.zink.fly.Fly;
import com.zink.fly.FlyAccessException;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -84,15 +88,14 @@ public void testTagsMatch() {
/**
* Test of findNearest method, of class FlyFinder.
*/
@Test
@Test(expected = FlyAccessException.class)
public void testTagsNoMatch() {
FlyFinder instance = new FlyFinder();
// test for a fail
Fly fly = instance.find(new String[] { "NadaFlySpace" } );
assertNull("Matched bad tags", fly);
}

0 comments on commit 5fe2943

Please sign in to comment.