Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit two TCK tests that were disable in non-standard manner #482

Merged
merged 1 commit into from
Oct 13, 2023
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 @@ -140,9 +140,12 @@ public void testCustomBeanIsPassivationCapableDependency() throws IOException, C
Assert.assertEquals(passCapBean.getFoo().getId(), actCapBean.getFoo().getId());
}

@Test(enabled = false) // disabled due to CDITCK-579
// @SpecAssertion(section = INTER_MODULE_INJECTION, id = "r")
@Test
@SpecAssertion(section = INTER_MODULE_INJECTION, id = "r")
public void testInjectionPointGetMemberIsUsedToDetermineTheClassThatDeclaresAnInjectionPoint(){
// resolve the bean and invoke a method on it to make sure it was created/used
Foo foo = getContextualReference(Foo.class, new PassivableLiteral());
foo.getId();
Assert.assertEquals(CustomInjectionPoint.getMembersClasses().size(),2);
Assert.assertTrue(CustomInjectionPoint.getMembersClasses().contains(Bar.class));
Assert.assertTrue(CustomInjectionPoint.getMembersClasses().contains(Integer.class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,4 @@ public void sessionBeanTypesContainsOnlyLegalTypes() {
assertEquals(birdBean.getTypes().size(), 2);
}

@Test(enabled = false)
// disabled due to CDITCK-575 and marked as testable false
// @SpecAssertions({ @SpecAssertion(section = RESOURCE_TYPES, id = "b") })
public void resourceBeanTypesContainsOnlyLegalTypes() {

Bean<Dog> dogBean = getUniqueBean(Dog.class, Produced.ProducedLiteral.INSTANCE);
for (Type type : dogBean.getTypes()) {
if (type instanceof ParameterizedType) {
assertNotEquals(((ParameterizedType) type).getRawType(), AnimalHolder.class);
}
}
assertEquals(dogBean.getTypes().size(), 2);
}

}

This file was deleted.

This file was deleted.

Loading