Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Import-Package: org.osgi.framework;version="1.3.0"
Bundle-Localization: plugin
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.jdt.ls.core,
com.microsoft.java.test.plugin,
com.google.gson,
com.microsoft.java.test.plugin, org.eclipse.lsp4j, com.google.gson,
org.junit,
org.apache.commons.commons-io;bundle-version="2.12.0",
org.eclipse.core.resources,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/inheritance-binary-parent/target/test-classes"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="target/test-classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inheritance-binary-child</name>
<comment></comment>
<projects></projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package example;

import org.junit.jupiter.api.TestInfo;

public class InheritanceBinaryChildTest extends InheritanceBinaryBaseTest<TestInfo> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="target/test-classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inheritance-binary-parent</name>
<comment></comment>
<projects></projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package example;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;

public class InheritanceBinaryBaseTest<T extends TestInfo> {
@Test
void base(T info) {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="/inheritance-parent"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="target/test-classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inheritance-child</name>
<comment></comment>
<projects>
<project>inheritance-parent</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.jupiter.api.Test;

public class InheritanceChildTest extends InheritanceBaseTest {
@Test
void child() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="target/test-classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inheritance-junit4</name>
<comment></comment>
<projects></projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.Test;

public class JUnit4BaseTest {
@Test
public void inherited() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package example;

public class JUnit4ChildTest extends JUnit4MiddleTest {
@Override
public void inherited() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.Test;

public class JUnit4GrandparentTest {
@Test
public void reannotated() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package example;

public class JUnit4IntermediateTest extends JUnit4GrandparentTest {
@Override
public void reannotated() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package example;

import org.junit.Test;

public class JUnit4MiddleTest extends JUnit4BaseTest {
@Override
@Test
public void inherited() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package example;

import org.junit.Test;

public class JUnit4ReannotatedChildTest extends JUnit4IntermediateTest {
@Override
@Test
public void reannotated() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="target/test-classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inheritance-parent</name>
<comment></comment>
<projects></projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.jupiter.api.Test;

public class InheritanceBaseTest {
@Test
void base() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package example;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;

public class GenericInheritanceBaseTest<T extends TestInfo> {
@Test
void generic(T info) {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package example;

import org.junit.jupiter.api.TestInfo;

public class GenericInheritanceChildTest extends GenericInheritanceBaseTest<TestInfo> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.jupiter.api.Test;

public class InheritanceBaseTest {
@Test
void base() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.jupiter.api.Test;

public class InheritanceChildTest extends InheritanceBaseTest {
@Test
void child() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package example;

import org.junit.jupiter.api.Test;

public class InheritanceOverrideTest extends InheritanceBaseTest {
@Test
@Override
void base() {
}

@Test
void extra() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package example;

public class InheritanceUnannotatedOverrideTest extends InheritanceBaseTest {
@Override
void base() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example;

import org.junit.jupiter.api.Test;

public class UnboundedGenericInheritanceBaseTest<T> {
@Test
void generic(T info) {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package example;

public class UnboundedGenericInheritanceChildTest extends UnboundedGenericInheritanceBaseTest<String> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package example.child;

import example.parent.PackagePrivateBaseTest;

public class CrossPackageSameSignatureTest extends PackagePrivateBaseTest {
void packagePrivateTest() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example.parent;

import org.junit.jupiter.api.Test;

public class PackagePrivateBaseTest {
@Test
void packagePrivateTest() {
}
}
Loading
Loading