Browse Source

Renaming org.dcevm -> com.github.dcevm

Well, dcevm.org domain is lost, so let's use com.github.dcevm for now.
tags/light-jdk8u5+36
Ivan Dubrov 10 years ago
parent
commit
9cc2c3411a
57 changed files with 183 additions and 212 deletions
  1. 2
    2
      agent/src/main/java/META-INF/MANIFEST.MF
  2. 1
    1
      agent/src/main/java/com/github/dcevm/agent/InstrumentationAgent.java
  3. 1
    1
      dcevm/src/main/java/com/github/dcevm/ClassRedefinitionPolicy.java
  4. 1
    1
      dcevm/src/main/java/com/github/dcevm/HotSwapTool.java
  5. 31
    0
      dcevm/src/main/java/com/github/dcevm/InstrumentationRedefiner.java
  6. 1
    1
      dcevm/src/main/java/com/github/dcevm/JDIRedefiner.java
  7. 1
    1
      dcevm/src/main/java/com/github/dcevm/Redefiner.java
  8. 1
    1
      dcevm/src/main/java/com/github/dcevm/TestClassAdapter.java
  9. 0
    54
      dcevm/src/main/java/org/dcevm/InstrumentationRedefiner.java
  10. 6
    6
      dcevm/src/test/java7/com/github/dcevm/test/LightTestSuite.java
  11. 2
    4
      dcevm/src/test/java7/com/github/dcevm/test/TestUtil.java
  12. 2
    4
      dcevm/src/test/java7/com/github/dcevm/test/body/ArrayTest.java
  13. 1
    1
      dcevm/src/test/java7/com/github/dcevm/test/body/BodyTestSuite.java
  14. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/ClassRenamingTestCase.java
  15. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/EMCPTest.java
  16. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/FacTest.java
  17. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/FibTest.java
  18. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/MultipleThreadsTest.java
  19. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/OldActivationTest.java
  20. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/RedefinePrivateMethodTest.java
  21. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/RefactorActiveMethodTest.java
  22. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/body/SimpleStaticTest.java
  23. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/StaticTest.java
  24. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/body/StressTest.java
  25. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/eval/AddingInterfaceTest.java
  26. 1
    1
      dcevm/src/test/java7/com/github/dcevm/test/eval/EvalTestSuite.java
  27. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/eval/FractionTest.java
  28. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/eval/GeometryScenario.java
  29. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/ComplexFieldTest.java
  30. 2
    2
      dcevm/src/test/java7/com/github/dcevm/test/fields/EnumTest.java
  31. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/FieldAlignmentTest.java
  32. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/FieldChangedOrderTest.java
  33. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/FieldModificationTest.java
  34. 1
    1
      dcevm/src/test/java7/com/github/dcevm/test/fields/FieldsTestSuite.java
  35. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/ObjectStressTest.java
  36. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/RedefinePrivateFieldTest.java
  37. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/StringFieldTest.java
  38. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/fields/YieldTest.java
  39. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/methods/AddMethodTest.java
  40. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/methods/AnnotationTest.java
  41. 2
    2
      dcevm/src/test/java7/com/github/dcevm/test/methods/ClassObjectHashcodeTest.java
  42. 2
    2
      dcevm/src/test/java7/com/github/dcevm/test/methods/ClassObjectSynchronizationTest.java
  43. 4
    5
      dcevm/src/test/java7/com/github/dcevm/test/methods/ClassReflectionTest.java
  44. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/methods/DeleteActiveMethodTest.java
  45. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/methods/MethodReflectionTest.java
  46. 1
    1
      dcevm/src/test/java7/com/github/dcevm/test/methods/MethodsTestSuite.java
  47. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/methods/OverrideMethodTest.java
  48. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/methods/SingleClassReflectionTest.java
  49. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/methods/SingleClassTest.java
  50. 3
    4
      dcevm/src/test/java7/com/github/dcevm/test/structural/AnonymousClassInMethodTest.java
  51. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/structural/InterfaceTest.java
  52. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/structural/RedefineClassClassTest.java
  53. 6
    6
      dcevm/src/test/java7/com/github/dcevm/test/structural/RedefineObjectClassTest.java
  54. 1
    1
      dcevm/src/test/java7/com/github/dcevm/test/structural/StructuralTestSuite.java
  55. 4
    4
      dcevm/src/test/java7/com/github/dcevm/test/structural/ThisTypeChange.java
  56. 2
    2
      dcevm/src/test/java7/com/github/dcevm/test/util/HotSwapTestHelper.java
  57. 3
    3
      dcevm/src/test/java8/com/github/dcevm/test/methods/DefaultMethodsTest.java

+ 2
- 2
agent/src/main/java/META-INF/MANIFEST.MF View File

@@ -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

agent/src/main/java/org/dcevm/agent/InstrumentationAgent.java → agent/src/main/java/com/github/dcevm/agent/InstrumentationAgent.java View File

@@ -1,4 +1,4 @@
package org.dcevm.agent;
package com.github.dcevm.agent;

import java.lang.instrument.Instrumentation;


dcevm/src/main/java/org/dcevm/ClassRedefinitionPolicy.java → dcevm/src/main/java/com/github/dcevm/ClassRedefinitionPolicy.java View File

@@ -21,7 +21,7 @@
* questions.
*
*/
package org.dcevm;
package com.github.dcevm;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

dcevm/src/main/java/org/dcevm/HotSwapTool.java → dcevm/src/main/java/com/github/dcevm/HotSwapTool.java View File

@@ -21,7 +21,7 @@
* questions.
*
*/
package org.dcevm;
package com.github.dcevm;

import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;

+ 31
- 0
dcevm/src/main/java/com/github/dcevm/InstrumentationRedefiner.java View File

@@ -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.
}
}

dcevm/src/main/java/org/dcevm/JDIRedefiner.java → dcevm/src/main/java/com/github/dcevm/JDIRedefiner.java View File

@@ -21,7 +21,7 @@
* questions.
*
*/
package org.dcevm;
package com.github.dcevm;

import com.sun.jdi.Bootstrap;
import com.sun.jdi.ReferenceType;

dcevm/src/main/java/org/dcevm/Redefiner.java → dcevm/src/main/java/com/github/dcevm/Redefiner.java View File

@@ -21,7 +21,7 @@
* questions.
*
*/
package org.dcevm;
package com.github.dcevm;

import java.io.Closeable;
import java.lang.instrument.UnmodifiableClassException;

dcevm/src/main/java/org/dcevm/TestClassAdapter.java → dcevm/src/main/java/com/github/dcevm/TestClassAdapter.java View File

@@ -21,7 +21,7 @@
* questions.
*
*/
package org.dcevm;
package com.github.dcevm;

import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;

+ 0
- 54
dcevm/src/main/java/org/dcevm/InstrumentationRedefiner.java View File

@@ -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.
}
}

dcevm/src/test/java7/org/dcevm/test/LightTestSuite.java → dcevm/src/test/java7/com/github/dcevm/test/LightTestSuite.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/TestUtil.java → dcevm/src/test/java7/com/github/dcevm/test/TestUtil.java View File

@@ -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.

dcevm/src/test/java7/org/dcevm/test/body/ArrayTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/ArrayTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/body/BodyTestSuite.java → dcevm/src/test/java7/com/github/dcevm/test/body/BodyTestSuite.java View File

@@ -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;

dcevm/src/test/java7/org/dcevm/test/body/ClassRenamingTestCase.java → dcevm/src/test/java7/com/github/dcevm/test/body/ClassRenamingTestCase.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/EMCPTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/EMCPTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/FacTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/FacTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/FibTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/FibTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/MultipleThreadsTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/MultipleThreadsTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/body/OldActivationTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/OldActivationTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/RedefinePrivateMethodTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/RedefinePrivateMethodTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/RefactorActiveMethodTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/RefactorActiveMethodTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/SimpleStaticTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/SimpleStaticTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/body/StaticTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/StaticTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/body/StressTest.java → dcevm/src/test/java7/com/github/dcevm/test/body/StressTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/eval/AddingInterfaceTest.java → dcevm/src/test/java7/com/github/dcevm/test/eval/AddingInterfaceTest.java View File

@@ -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.

dcevm/src/test/java7/org/dcevm/test/eval/EvalTestSuite.java → dcevm/src/test/java7/com/github/dcevm/test/eval/EvalTestSuite.java View File

@@ -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;

dcevm/src/test/java7/org/dcevm/test/eval/FractionTest.java → dcevm/src/test/java7/com/github/dcevm/test/eval/FractionTest.java View File

@@ -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

dcevm/src/test/java7/org/dcevm/test/eval/GeometryScenario.java → dcevm/src/test/java7/com/github/dcevm/test/eval/GeometryScenario.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/ComplexFieldTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/ComplexFieldTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/EnumTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/EnumTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/fields/FieldAlignmentTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/FieldAlignmentTest.java View File

@@ -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.

dcevm/src/test/java7/org/dcevm/test/fields/FieldChangedOrderTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/FieldChangedOrderTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/FieldModificationTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/FieldModificationTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/FieldsTestSuite.java → dcevm/src/test/java7/com/github/dcevm/test/fields/FieldsTestSuite.java View File

@@ -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;

dcevm/src/test/java7/org/dcevm/test/fields/ObjectStressTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/ObjectStressTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/RedefinePrivateFieldTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/RedefinePrivateFieldTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/StringFieldTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/StringFieldTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/fields/YieldTest.java → dcevm/src/test/java7/com/github/dcevm/test/fields/YieldTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/AddMethodTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/AddMethodTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/methods/AnnotationTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/AnnotationTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/ClassObjectHashcodeTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/ClassObjectHashcodeTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/methods/ClassObjectSynchronizationTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/ClassObjectSynchronizationTest.java View File

@@ -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;


dcevm/src/test/java7/org/dcevm/test/methods/ClassReflectionTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/ClassReflectionTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/DeleteActiveMethodTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/DeleteActiveMethodTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/MethodReflectionTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/MethodReflectionTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/MethodsTestSuite.java → dcevm/src/test/java7/com/github/dcevm/test/methods/MethodsTestSuite.java View File

@@ -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;

dcevm/src/test/java7/org/dcevm/test/methods/OverrideMethodTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/OverrideMethodTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/SingleClassReflectionTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/SingleClassReflectionTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/methods/SingleClassTest.java → dcevm/src/test/java7/com/github/dcevm/test/methods/SingleClassTest.java View File

@@ -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;

/**

dcevm/src/test/java7/org/dcevm/test/structural/AnonymousClassInMethodTest.java → dcevm/src/test/java7/com/github/dcevm/test/structural/AnonymousClassInMethodTest.java View File

@@ -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.

dcevm/src/test/java7/org/dcevm/test/structural/InterfaceTest.java → dcevm/src/test/java7/com/github/dcevm/test/structural/InterfaceTest.java View File

@@ -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.*;

/**

dcevm/src/test/java7/org/dcevm/test/structural/RedefineClassClassTest.java → dcevm/src/test/java7/com/github/dcevm/test/structural/RedefineClassClassTest.java View File

@@ -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)

dcevm/src/test/java7/org/dcevm/test/structural/RedefineObjectClassTest.java → dcevm/src/test/java7/com/github/dcevm/test/structural/RedefineObjectClassTest.java View File

@@ -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);

dcevm/src/test/java7/org/dcevm/test/structural/StructuralTestSuite.java → dcevm/src/test/java7/com/github/dcevm/test/structural/StructuralTestSuite.java View File

@@ -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;

dcevm/src/test/java7/org/dcevm/test/structural/ThisTypeChange.java → dcevm/src/test/java7/com/github/dcevm/test/structural/ThisTypeChange.java View File

@@ -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.

dcevm/src/test/java7/org/dcevm/test/util/HotSwapTestHelper.java → dcevm/src/test/java7/com/github/dcevm/test/util/HotSwapTestHelper.java View File

@@ -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.

dcevm/src/test/java8/org/dcevm/test/methods/DefaultMethodsTest.java → dcevm/src/test/java8/com/github/dcevm/test/methods/DefaultMethodsTest.java View File

@@ -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;

/**

Loading…
Cancel
Save