Well, dcevm.org domain is lost, so let's use com.github.dcevm for now.tags/light-jdk8u5+36
@@ -1,4 +1,4 @@ | |||
Manifest-Version: 1.0 | |||
Can-Redefine-Classes: true | |||
Agent-Class: org.dcevm.agent.InstrumentationAgent | |||
Premain-Class: org.dcevm.agent.InstrumentationAgent | |||
Agent-Class: com.github.dcevm.agent.InstrumentationAgent | |||
Premain-Class: com.github.dcevm.agent.InstrumentationAgent |
@@ -1,4 +1,4 @@ | |||
package org.dcevm.agent; | |||
package com.github.dcevm.agent; | |||
import java.lang.instrument.Instrumentation; | |||
@@ -21,7 +21,7 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm; | |||
package com.github.dcevm; | |||
import java.lang.annotation.Retention; | |||
import java.lang.annotation.RetentionPolicy; |
@@ -21,7 +21,7 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm; | |||
package com.github.dcevm; | |||
import org.objectweb.asm.ClassReader; | |||
import org.objectweb.asm.ClassWriter; |
@@ -0,0 +1,31 @@ | |||
package com.github.dcevm; | |||
import com.github.dcevm.agent.InstrumentationAgent; | |||
import java.io.IOException; | |||
import java.lang.instrument.ClassDefinition; | |||
import java.lang.instrument.Instrumentation; | |||
import java.lang.instrument.UnmodifiableClassException; | |||
import java.util.Map; | |||
public class InstrumentationRedefiner implements Redefiner { | |||
public void redefineClasses(Map<Class<?>, byte[]> classes) throws ClassNotFoundException, UnmodifiableClassException { | |||
Instrumentation instrumentation = InstrumentationAgent.INSTRUMENTATION; | |||
if (instrumentation == null) { | |||
throw new IllegalStateException("Instrumentation agent is not properly installed!"); | |||
} | |||
ClassDefinition[] definitions = new ClassDefinition[classes.size()]; | |||
int i = 0; | |||
for (Map.Entry<Class<?>, byte[]> entry : classes.entrySet()) { | |||
definitions[i++] = new ClassDefinition(entry.getKey(), entry.getValue()); | |||
} | |||
instrumentation.redefineClasses(definitions); | |||
} | |||
@Override | |||
public void close() throws IOException { | |||
// Do nothing. | |||
} | |||
} |
@@ -21,7 +21,7 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm; | |||
package com.github.dcevm; | |||
import com.sun.jdi.Bootstrap; | |||
import com.sun.jdi.ReferenceType; |
@@ -21,7 +21,7 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm; | |||
package com.github.dcevm; | |||
import java.io.Closeable; | |||
import java.lang.instrument.UnmodifiableClassException; |
@@ -21,7 +21,7 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm; | |||
package com.github.dcevm; | |||
import org.objectweb.asm.ClassVisitor; | |||
import org.objectweb.asm.MethodVisitor; |
@@ -1,54 +0,0 @@ | |||
/* | |||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. | |||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |||
* | |||
* This code is free software; you can redistribute it and/or modify it | |||
* under the terms of the GNU General Public License version 2 only, as | |||
* published by the Free Software Foundation. | |||
* | |||
* This code is distributed in the hope that it will be useful, but WITHOUT | |||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |||
* version 2 for more details (a copy is included in the LICENSE file that | |||
* accompanied this code). | |||
* | |||
* You should have received a copy of the GNU General Public License version | |||
* 2 along with this work; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |||
* | |||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |||
* or visit www.oracle.com if you need additional information or have any | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm; | |||
import org.dcevm.agent.InstrumentationAgent; | |||
import java.io.IOException; | |||
import java.lang.instrument.ClassDefinition; | |||
import java.lang.instrument.Instrumentation; | |||
import java.lang.instrument.UnmodifiableClassException; | |||
import java.util.Map; | |||
public class InstrumentationRedefiner implements Redefiner { | |||
public void redefineClasses(Map<Class<?>, byte[]> classes) throws ClassNotFoundException, UnmodifiableClassException { | |||
Instrumentation instrumentation = InstrumentationAgent.INSTRUMENTATION; | |||
if (instrumentation == null) { | |||
throw new IllegalStateException("Instrumentation agent is not properly installed!"); | |||
} | |||
ClassDefinition[] definitions = new ClassDefinition[classes.size()]; | |||
int i = 0; | |||
for (Map.Entry<Class<?>, byte[]> entry : classes.entrySet()) { | |||
definitions[i++] = new ClassDefinition(entry.getKey(), entry.getValue()); | |||
} | |||
instrumentation.redefineClasses(definitions); | |||
} | |||
@Override | |||
public void close() throws IOException { | |||
// Do nothing. | |||
} | |||
} |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test; | |||
package com.github.dcevm.test; | |||
import org.dcevm.test.body.BodyTestSuite; | |||
import org.dcevm.test.eval.EvalTestSuite; | |||
import org.dcevm.test.fields.FieldsTestSuite; | |||
import org.dcevm.test.methods.MethodsTestSuite; | |||
import org.dcevm.test.structural.StructuralTestSuite; | |||
import com.github.dcevm.test.body.BodyTestSuite; | |||
import com.github.dcevm.test.eval.EvalTestSuite; | |||
import com.github.dcevm.test.fields.FieldsTestSuite; | |||
import com.github.dcevm.test.methods.MethodsTestSuite; | |||
import com.github.dcevm.test.structural.StructuralTestSuite; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; | |||
@@ -22,12 +22,10 @@ | |||
* | |||
*/ | |||
package org.dcevm.test; | |||
package com.github.dcevm.test; | |||
import junit.framework.Assert; | |||
import org.dcevm.HotSwapTool; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import com.github.dcevm.HotSwapTool; | |||
/** | |||
* Utility methods for unit testing. |
@@ -22,16 +22,14 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import java.lang.reflect.Array; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; |
@@ -21,12 +21,12 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.dcevm.ClassRedefinitionPolicy; | |||
import com.github.dcevm.ClassRedefinitionPolicy; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -21,14 +21,14 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Test; | |||
import java.io.PrintStream; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertFalse; | |||
import static org.junit.Assert.assertTrue; | |||
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,14 +22,14 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
@@ -31,8 +31,8 @@ import java.util.ArrayList; | |||
import java.util.List; | |||
import static junit.framework.Assert.assertNull; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.body; | |||
package com.github.dcevm.test.body; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,14 +22,14 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.eval; | |||
package com.github.dcevm.test.eval; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
/** | |||
* Adds an implemented interface to a class and tests whether an instance of this class can then really be treated as an instance of the interface. |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.eval; | |||
package com.github.dcevm.test.eval; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; |
@@ -22,17 +22,17 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.eval; | |||
package com.github.dcevm.test.eval; | |||
import org.dcevm.HotSwapTool; | |||
import com.github.dcevm.HotSwapTool; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import java.util.ArrayList; | |||
import java.util.List; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
/** | |||
* @author Thomas Wuerthinger |
@@ -21,14 +21,14 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.eval; | |||
package com.github.dcevm.test.eval; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Ignore; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertNotNull; | |||
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
/** | |||
* Complex field test. |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.fields; | |||
package com.github.dcevm.test.fields; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
@@ -31,8 +31,8 @@ import java.util.ArrayList; | |||
import java.util.Arrays; | |||
import java.util.List; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -21,14 +21,14 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
@@ -21,7 +21,7 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
@@ -30,8 +30,8 @@ import java.lang.annotation.*; | |||
import java.lang.reflect.Field; | |||
import java.lang.reflect.Method; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -21,12 +21,12 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
@@ -21,12 +21,12 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
@@ -22,18 +22,17 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import junit.framework.Assert; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import java.lang.ref.SoftReference; | |||
import java.lang.reflect.Method; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,15 +22,15 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import junit.framework.Assert; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import junit.framework.Assert; | |||
import org.junit.Before; | |||
@@ -30,8 +30,8 @@ import org.junit.Test; | |||
import java.lang.reflect.Method; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |
@@ -1,11 +1,10 @@ | |||
package org.dcevm.test.structural; | |||
package com.github.dcevm.test.structural; | |||
import org.junit.Assert; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
/** | |||
* Test insertion and swap of anonymous classes. |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.structural; | |||
package com.github.dcevm.test.structural; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.*; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.*; | |||
/** |
@@ -21,15 +21,15 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.structural; | |||
package com.github.dcevm.test.structural; | |||
import org.dcevm.ClassRedefinitionPolicy; | |||
import com.github.dcevm.ClassRedefinitionPolicy; | |||
import org.junit.Before; | |||
import org.junit.Ignore; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
/** | |||
* Smallest test case for redefining the interface java/lang/reflect/Type (causes java/lang/Class being redefined) |
@@ -21,15 +21,15 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.structural; | |||
package com.github.dcevm.test.structural; | |||
import org.dcevm.ClassRedefinitionPolicy; | |||
import com.github.dcevm.ClassRedefinitionPolicy; | |||
import org.junit.Before; | |||
import org.junit.Ignore; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** | |||
@@ -85,7 +85,7 @@ public class RedefineObjectClassTest { | |||
} | |||
public final String myTestFunction___() { | |||
return "org/dcevm/test"; | |||
return "com/github/dcevm/test"; | |||
} | |||
public final native void notify___(); | |||
@@ -141,7 +141,7 @@ public class RedefineObjectClassTest { | |||
//assertEquals("test", o.toString()); | |||
assertEquals("org/dcevm/test", Helper.access(o)); | |||
assertEquals("com/github/dcevm/test", Helper.access(o)); | |||
__toVersion__(0); | |||
__toVersion__(1); | |||
__toVersion__(0); |
@@ -22,7 +22,7 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.structural; | |||
package com.github.dcevm.test.structural; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; |
@@ -22,14 +22,14 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.structural; | |||
package com.github.dcevm.test.structural; | |||
import org.dcevm.test.TestUtil; | |||
import com.github.dcevm.test.TestUtil; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
/** | |||
* Tests that change the type of the object references by the Java this pointer. |
@@ -21,9 +21,9 @@ | |||
* questions. | |||
* | |||
*/ | |||
package org.dcevm.test.util; | |||
package com.github.dcevm.test.util; | |||
import org.dcevm.HotSwapTool; | |||
import com.github.dcevm.HotSwapTool; | |||
/** | |||
* Shortcut methods for testing. Methods are named this way to make them more visible in the test code. |
@@ -22,13 +22,13 @@ | |||
* | |||
*/ | |||
package org.dcevm.test.methods; | |||
package com.github.dcevm.test.methods; | |||
import org.junit.Before; | |||
import org.junit.Test; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||
import static org.junit.Assert.assertEquals; | |||
/** |