package hu.advancedweb.scott;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;

import org.junit.Test;
import org.objectweb.asm.Type;

import hu.advancedweb.scott.runtime.track.StateRegistry;

public class MethodNameAndClassTrackingTest {
	
	@Test
	public void test1() throws Exception {
		assertThat(StateRegistry.getTestClassType(), equalTo(Type.getInternalName(MethodNameAndClassTrackingTest.class)));
		assertThat(StateRegistry.getTestMethodName(), equalTo("test1"));
	}

	@Test
	public void test2() throws Exception {
		assertThat(StateRegistry.getTestClassType(), equalTo(Type.getInternalName(MethodNameAndClassTrackingTest.class)));
		assertThat(StateRegistry.getTestMethodName(), equalTo("test2"));
	}

}

@@ -143,39 +143,8 @@
 est;
-%0Aimport org.objectweb.asm.Type;
 %0A%0Aim
@@ -349,37 +349,38 @@
 equalTo(
-Type.getInternalName(
+%22hu/advancedweb/scott/
 MethodNa
@@ -393,39 +393,33 @@
 lassTrackingTest
-.class)
+%22
 ));%0A%09%09assertThat
@@ -583,29 +583,30 @@
 lTo(
-Type.getInternalName(
+%22hu/advancedweb/scott/
 Meth
@@ -635,15 +635,9 @@
 Test
-.class)
+%22
 ));%0A

Fix test