Skip to content

Commit

Permalink
Revisit two TCK tests that were disable in non-standard manner
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Oct 13, 2023
1 parent ff3fd1b commit 075d9e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 71 deletions.
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.

0 comments on commit 075d9e8

Please sign in to comment.