Skip to content

Commit

Permalink
[release] Release new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Apr 7, 2022
1 parent 3a96680 commit 008caed
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public void testIllegalDelegatedGenericArray() throws Exception {
@JavaVersionRule.Enforce(8)
public void testLegalGenericArray() throws Exception {
when(legal.getComponentType()).thenReturn(otherLegal);
when(legalAnnotation.isSupportedOn("TYPE_USE")).thenReturn(true);
assertThat(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE.onGenericArray(legal), is(true));
verify(otherLegal).accept(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE);
}
Expand All @@ -108,6 +109,7 @@ public void testIllegalDelegatedNonGenericArray() throws Exception {
public void testLegalNonGenericArray() throws Exception {
when(legal.isArray()).thenReturn(true);
when(legal.getComponentType()).thenReturn(otherLegal);
when(legalAnnotation.isSupportedOn("TYPE_USE")).thenReturn(true);
assertThat(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE.onNonGenericType(legal), is(true));
verify(otherLegal).accept(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE);
}
Expand All @@ -125,6 +127,7 @@ public void testDuplicateNonGeneric() throws Exception {
@Test
@JavaVersionRule.Enforce(8)
public void testLegalNonGeneric() throws Exception {
when(legalAnnotation.isSupportedOn("TYPE_USE")).thenReturn(true);
assertThat(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE.onNonGenericType(legal), is(true));
}

Expand All @@ -141,6 +144,7 @@ public void testDuplicateTypeVariable() throws Exception {
@Test
@JavaVersionRule.Enforce(8)
public void testLegalTypeVariable() throws Exception {
when(legalAnnotation.isSupportedOn("TYPE_USE")).thenReturn(true);
assertThat(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE.onTypeVariable(legal), is(true));
}

Expand Down Expand Up @@ -177,6 +181,7 @@ public void testLegalParameterized() throws Exception {
when(legal.isArray()).thenReturn(true);
when(legal.getTypeArguments()).thenReturn(new TypeList.Generic.Explicit(otherLegal));
when(legal.getOwnerType()).thenReturn(otherLegal);
when(legalAnnotation.isSupportedOn("TYPE_USE")).thenReturn(true);
assertThat(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE.onParameterizedType(legal), is(true));
verify(otherLegal, times(2)).accept(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE);
}
Expand Down Expand Up @@ -210,6 +215,7 @@ public void testWildcardIllegalLowerBounds() throws Exception {
public void testWildcardLegal() throws Exception {
when(legal.getUpperBounds()).thenReturn(new TypeList.Generic.Explicit(TypeDescription.Generic.OBJECT));
when(legal.getLowerBounds()).thenReturn(new TypeList.Generic.Explicit(otherLegal));
when(legalAnnotation.isSupportedOn("TYPE_USE")).thenReturn(true);
assertThat(TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE.onWildcard(legal), is(true));
}
}

0 comments on commit 008caed

Please sign in to comment.