issues fixed
This commit is contained in:
parent
264cc9ffe4
commit
fb31fd910e
8 changed files with 3 additions and 7 deletions
|
|
@ -3,7 +3,6 @@
|
|||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="tst"/>
|
||||
<classpathentry kind="src" path="testclasses"/>
|
||||
<classpathentry kind="src" path="jacoco"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<accessrules>
|
||||
<accessrule kind="accessible" pattern="sun/reflect/**"/>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -4,6 +4,7 @@ import java.io.InputStream;
|
|||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import nl.jssl.autounit.utils.MemoryClassloader;
|
||||
import nl.jssl.autounit.utils.SilentObjectCreator;
|
||||
|
||||
import org.jacoco.core.analysis.Analyzer;
|
||||
|
|
@ -15,7 +16,6 @@ import org.jacoco.core.instr.Instrumenter;
|
|||
import org.jacoco.core.runtime.IRuntime;
|
||||
import org.jacoco.core.runtime.LoggerRuntime;
|
||||
import org.jacoco.core.runtime.RuntimeData;
|
||||
import org.jacoco.examples.CoreTutorial.MemoryClassLoader;
|
||||
|
||||
public class CoverageAnalyser {
|
||||
private IRuntime runtime;
|
||||
|
|
@ -33,7 +33,7 @@ public class CoverageAnalyser {
|
|||
data = new RuntimeData();
|
||||
runtime.startup(data);
|
||||
|
||||
MemoryClassLoader memoryClassLoader = new MemoryClassLoader();
|
||||
MemoryClassloader memoryClassLoader = new MemoryClassloader();
|
||||
memoryClassLoader.addDefinition(targetName, instrumented);
|
||||
Class<T> targetClass = (Class<T>) memoryClassLoader.loadClass(targetName);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package nl.jssl.autounit;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
|
@ -18,12 +18,9 @@ import org.junit.Test;
|
|||
public class PrimtiveTypeTests {
|
||||
@Test
|
||||
public void testGetPublicMethods() throws NoSuchMethodException, SecurityException {
|
||||
Method evenOrUneven = IntArguments.class.getMethod("evenOrUneven", int.class);
|
||||
List<Method> publicMethods = new Recorder(IntArguments.class).getPublicMethods();
|
||||
|
||||
assertEquals(2, publicMethods.size());
|
||||
assertEquals(evenOrUneven, publicMethods.get(0));
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue