Commit 3f91e6fd authored by James Hughes's avatar James Hughes
Browse files

Removing testing

parent 895ff006
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -124,7 +124,6 @@ public class KineticBench extends SwingWorker<Object, Object> {
			while (!this.isCancelled()) {
				loop++;
				byte[] key = nextKey();
				log.fine(new String(key));
				outstanding.initiate(4);
				if (write) {
					EntryMetadata em = new EntryMetadata();

Demo1/src/com/jim/StatTest.java

deleted100755 → 0
+0 −61
Original line number Diff line number Diff line
package com.jim;

import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.assertEquals;

import org.testng.annotations.Test;

public class StatTest {

	@Test
	public void Stat() {
		Stat s = new Stat();
		assertEquals(s.ops, 0);
		assertEquals(s.bytes, 0);
		assertEquals(s.deviceName, "");
	}

	@Test
	public void addStat() {
		Stat s = new Stat();
		s.add(new Stat(1,2));
		s.add(new Stat(3,4));
		assertEquals(s, new Stat(4,6));
	}

	@Test
	public void addStatStat() {
		Stat s = Stat.add(new Stat(1,2), new Stat(3,4));
		assertEquals(s, new Stat(4,6));
	}

	@Test
	public void subStat() {
		Stat s = new Stat(4,6);
		s.sub(new Stat(1,2));
		assertEquals(s, new Stat(3,4));
	}

	@Test
	public void subStatStat() {
		Stat s = Stat.sub(new Stat(3,4), new Stat(1,2));
		assertEquals(s, new Stat(2,2));
	}

	@Test
	public void StatStat () {
		Stat s = new Stat(2,4);
		Stat s1 = new Stat(s);
		assertEquals(s,s1);
		assertFalse(s == s1);
	}
	
	
	@Test
	public void times() {
		Stat s = new Stat(4,6);
		s.times(3);
		assertEquals(s, new Stat(12,18));
	}
}
+0 −71
Original line number Diff line number Diff line
<html>
<head>
<title>TestNG:  Default test</title>
<link href="../testng.css" rel="stylesheet" type="text/css" />
<link href="../my-testng.css" rel="stylesheet" type="text/css" />

<style type="text/css">
.log { display: none;} 
.stack-trace { display: none;} 
</style>
<script type="text/javascript">
<!--
function flip(e) {
  current = e.style.display;
  if (current == 'block') {
    e.style.display = 'none';
    return 0;
  }
  else {
    e.style.display = 'block';
    return 1;
  }
}

function toggleBox(szDivId, elem, msg1, msg2)
{
  var res = -1;  if (document.getElementById) {
    res = flip(document.getElementById(szDivId));
  }
  else if (document.all) {
    // this is the way old msie versions work
    res = flip(document.all[szDivId]);
  }
  if(elem) {
    if(res == 0) elem.innerHTML = msg1; else elem.innerHTML = msg2;
  }

}

function toggleAllBoxes() {
  if (document.getElementsByTagName) {
    d = document.getElementsByTagName('div');
    for (i = 0; i < d.length; i++) {
      if (d[i].className == 'log') {
        flip(d[i]);
      }
    }
  }
}

// -->
</script>

</head>
<body>
<h2 align='center'>Default test</h2><table border='1' align="center">
<tr>
<td>Tests passed/Failed/Skipped:</td><td>0/0/0</td>
</tr><tr>
<td>Started on:</td><td>Wed Oct 22 23:32:06 PDT 2014</td>
</tr>
<tr><td>Total time:</td><td>0 seconds (5 ms)</td>
</tr><tr>
<td>Included groups:</td><td></td>
</tr><tr>
<td>Excluded groups:</td><td></td>
</tr>
</table><p/>
<small><i>(Hover the method name to see the test class name)</i></small><p/>
</body>
</html>
 No newline at end of file
+0 −4
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitXMLReporter -->
<testsuite tests="0" failures="0" timestamp="23 Oct 2014 06:32:06 GMT" time="0.005" errors="0">
</testsuite>
−356 B
Loading image diff...
Loading