Skip to content

Commit

Permalink
Merge branch 'master' into issue-327
Browse files Browse the repository at this point in the history
  • Loading branch information
SarikaSinha authored Dec 5, 2023
2 parents c12d9f7 + cd1b3f7 commit 0172a80
Show file tree
Hide file tree
Showing 555 changed files with 905 additions and 3,143 deletions.
2 changes: 2 additions & 0 deletions .github/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
15 changes: 15 additions & 0 deletions .github/workflows/updateRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update to next release
on:
milestone:
types: [created]

permissions:
contents: read

jobs:
update:
if: contains(github.event.milestone.description, 'Release')
permissions:
pull-requests: write
contents: write
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/updateRelease.yml@master
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ Snap.*
# maven
/*/target/
/target/

# pomless
.polyglot.*
8 changes: 8 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>4.0.4</version>
</extension>
</extensions>
426 changes: 396 additions & 30 deletions org.eclipse.jdt.debug.jdi.tests/JDI Test Suite.launch

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public class TryVirtualThread implements Runnable {

/**
* Runs the test program
* @param args
*/
public static void main(java.lang.String[] args) {
// Ensure at least one carrier thread is created.
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.jdt.debug.jdi.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<artifactId>eclipse.jdt.debug</artifactId>
<groupId>eclipse.jdt.debug</groupId>
<version>4.30.0-SNAPSHOT</version>
<version>4.31.0-SNAPSHOT</version>
</parent>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.debug.jdi.tests</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,24 @@ public abstract class AbstractJDITest extends TestCase {
* Constructs a test case with a default name.
*/
public AbstractJDITest() {
super("JDI Test");
this("JDI Test");
}

public AbstractJDITest(String name) {
super(name);
}

static {
fTargetAddress = System.getProperty("java.home");
fVMLauncherName = "DefaultVMLauncher";
fClassPath = new File("./bin").getAbsolutePath();
fBootPath = "";
fVMType = "?";
}

@Override
public final String getName() {
return super.getName();
}
/**
* Returns the names of the tests that are known to not work
Expand Down Expand Up @@ -160,7 +177,6 @@ protected Vector<String> getAllMatchingTests(String match) {
* @return <code>true</code> if a 1.6 or higher VM
* @since 3.8
*/
@SuppressWarnings("restriction")
protected boolean is16OrGreater() {
return ((VirtualMachineImpl) fVM).isJdwpVersionGreaterOrEqual(1, 6);
}
Expand Down Expand Up @@ -688,7 +704,6 @@ private void launchCommandLineTarget() {
* Parse the command {@link String} to make sure we use
* {@link Runtime#exec(String[])}.
*
* @param command
* @return the array of items from the command {@link String}
* @since 4.3
*/
Expand Down Expand Up @@ -843,7 +858,6 @@ private void injectVMArgs(Vector<String> commandLine) {
* Flattens the variable size command line and calls Runtime.exec().
* @param commandLine A vector of command line argument strings.
* @return The Process created by Runtime.exec()
* @throws IOException
*/
private Process exec(Vector<String> commandLine) throws IOException {
String[] vmString = new String[commandLine.size()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ abstract public class AbstractReader {

/**
* Constructor
* @param name
*/
public AbstractReader(String name) {
fName = name;
Expand All @@ -35,7 +34,6 @@ public AbstractReader(String name) {
abstract protected void readerLoop();
/**
* Start the thread that reads events.
*
*/
public void start() {
fReaderThread = new Thread(new Runnable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public class AccessibleTest extends AbstractJDITest {
public AccessibleTest() {
super();
}

public AccessibleTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -46,19 +50,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new AccessibleTest().runSuite(args);
}

/**
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.Accessible";
}
/**
* Test JDI isPackagePrivate().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public class ArrayReferenceTest extends AbstractJDITest {
public ArrayReferenceTest() {
super();
}

public ArrayReferenceTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -50,19 +54,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new ArrayReferenceTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.ArrayReference";
}

/**
* Test JDI getValue(int), getValues(), getValues(int,int)
* setValue(Value,int), setValues(List) and setValues(int,List,int,int),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public class ArrayTypeTest extends AbstractJDITest {
public ArrayTypeTest() {
super();
}

public ArrayTypeTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -44,19 +48,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new ArrayTypeTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.ArrayType";
}

/**
* Test JDI componentSignature().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import junit.framework.TestSuite;

/**
*/
public class AutomatedSuite extends TestSuite {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class BooleanValueTest extends AbstractJDITest {
public BooleanValueTest() {
super();
}

public BooleanValueTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -40,19 +44,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new BooleanValueTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.BooleanValue";
}

/**
* Test JDI equals() and hashCode().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public class BreakpointRequestTest extends AbstractJDITest {
public BreakpointRequestTest() {
super();
}

public BreakpointRequestTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -46,19 +50,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new BreakpointRequestTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.request.BreakpointRequest";
}
/**
* Test JDI location().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class ByteValueTest extends AbstractJDITest {
public ByteValueTest() {
super();
}

public ByteValueTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -40,19 +44,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new ByteValueTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.ByteValue";
}

/**
* Test JDI equals() and hashCode().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class CharValueTest extends AbstractJDITest {
public CharValueTest() {
super();
}

public CharValueTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -40,19 +44,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new CharValueTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.CharValue";
}

/**
* Test JDI equals() and hashCode().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public class ClassLoaderReferenceTest extends AbstractJDITest {
public ClassLoaderReferenceTest() {
super();
}

public ClassLoaderReferenceTest(String name) {
super(name);
}
/**
* Init the fields that are used by this test only.
*/
Expand All @@ -42,29 +46,21 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
* @param args
*/
public static void main(java.lang.String[] args) {
new ClassLoaderReferenceTest().runSuite(args);
}
/**
* Gets the name of the test case.
* @see junit.framework.TestCase#getName()
*/
@Override
public String getName() {
return "com.sun.jdi.ClassLoaderReference";
}
/**
* Test JDI definedClasses().
*/
public void testJDIDefinedClasses() {
Iterator<?> defined = fClassLoader.definedClasses().iterator();
int i = 0;
while (defined.hasNext())
while (defined.hasNext()) {
assertTrue(
Integer.toString(i++),
defined.next() instanceof ReferenceType);
}
}
/**
* Test JDI visibleClasses().
Expand Down
Loading

0 comments on commit 0172a80

Please sign in to comment.