package com.boundary.plugin.sdk;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class MeasureTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		fail("Not yet implemented");
	}

}

@@ -62,16 +62,40 @@
 ert.*;%0A%0A
+import java.util.Date;%0A%0A
 import o
@@ -110,16 +110,16 @@
 .After;%0A
-
 import o
@@ -244,16 +244,30 @@
 reTest %7B
+%0A%09%0A%09Measure m;
 %0A%0A%09@Befo
@@ -454,32 +454,53 @@
 ows Exception %7B%0A
+%09%09m = new Measure();%0A
 %09%7D%0A%0A%09@After%0A%09pub
@@ -570,46 +570,659 @@
 test
+Name
 () %7B%0A%09%09
-fail(%22Not yet implemented%22
+String expectedName = %22foobar%22;%0A%09%09m.setName(expectedName);%0A%09%09assertEquals(%22Check name%22,expectedName,m.getName());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testValue() %7B%0A%09%09String expectedValue = %22365%22;%0A%09%09m.setValue(expectedValue);%0A%09%09assertEquals(%22Check value%22,expectedValue,m.getValue());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testSource() %7B%0A%09%09String expectedSource = %22some-machine.somewhere.com%22;%0A%09%09m.setSource(expectedSource);%0A%09%09assertEquals(%22Check source%22,expectedSource,m.getSource());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testTimestamp() %7B%0A%09%09Date expectedDate = new Date();%0A%09%09m.setTimestamp(expectedDate);%0A%09%09assertEquals(%22Check timestamp%22,expectedDate,m.getTimestamp()
 );%0A%09%7D
+%0A%09%0A%09
 %0A%0A%7D%0A

Add test functions