Skip to content

Commit

Permalink
Upgrade the tck-audit.xml as of CR1
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and gunnarmorling committed Jun 23, 2017
1 parent 48f093e commit 5388c77
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 43 deletions.
Expand Up @@ -46,7 +46,7 @@ public static WebArchive createTestArchive() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "v")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "x")
public void testEmailConstraint() {
Validator validator = TestUtil.getValidatorUnderTest();
EmailDummyEntity foo = new EmailDummyEntity();
Expand All @@ -65,7 +65,7 @@ public void testEmailConstraint() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "v")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "x")
public void testEmailConstraintOnStringBuilder() {
// @Email has to support CharSequence so let's also try a StringBuilder
Validator validator = TestUtil.getValidatorUnderTest();
Expand Down
Expand Up @@ -162,7 +162,7 @@ public void testPastConstraintForRelativePartial() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "s")
public void testFutureConstraint() {
Validator validator = TestUtil.getValidatorUnderTest();
FutureDummyEntity dummy = new FutureDummyEntity();
Expand Down Expand Up @@ -215,7 +215,7 @@ public void testFutureConstraint() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "s")
public void testFutureConstraintForRelativePartial() {
// For partials not referencing a precise point in time, we need to use the FixedClockProvider
// to make sure the tests are working at any date
Expand Down Expand Up @@ -254,7 +254,7 @@ public void testFutureConstraintForRelativePartial() {
}

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "q")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
public void testPastOrPresentConstraint() {
ZonedDateTime reference = ZonedDateTime.of( 2016, 6, 6, 14, 26, 0, 0, TZ_BERLIN );

Expand Down Expand Up @@ -344,7 +344,7 @@ public void testPastOrPresentConstraint() {
}

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "q")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
public void testPastOrPresentConstraintForRelativePartial() {
ZonedDateTime reference = ZonedDateTime.of( 2016, 6, 6, 14, 26, 0, 0, TZ_BERLIN );

Expand Down Expand Up @@ -394,7 +394,7 @@ public void testPastOrPresentConstraintForRelativePartial() {
}

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "t")
public void testFutureOrPresentConstraint() {
ZonedDateTime reference = ZonedDateTime.of( 2016, 6, 6, 14, 26, 0, 0, TZ_BERLIN );

Expand Down Expand Up @@ -484,7 +484,7 @@ public void testFutureOrPresentConstraint() {
}

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "t")
public void testFutureOrPresentConstraintForRelativePartial() {
ZonedDateTime reference = ZonedDateTime.of( 2016, 6, 6, 14, 26, 0, 0, TZ_BERLIN );

Expand Down
Expand Up @@ -42,7 +42,7 @@ public static WebArchive createTestArchive() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "u")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "w")
public void testNotBlankConstraint() {
Validator validator = getValidator();
NotBlankDummyEntity foo = new NotBlankDummyEntity();
Expand Down Expand Up @@ -93,7 +93,7 @@ public void testNotBlankConstraint() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "u")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "w")
public void testNotBlankConstraintOnStringBuilder() {
// @NotBlank has to support CharSequence so let's also try a StringBuilder
Validator validator = getValidator();
Expand Down
Expand Up @@ -47,7 +47,7 @@ public static WebArchive createTestArchive() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "t")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "v")
public void testNotEmptyConstraint() {
Validator validator = TestUtil.getValidatorUnderTest();
NotEmptyDummyEntity dummy = new NotEmptyDummyEntity();
Expand Down
Expand Up @@ -42,7 +42,7 @@ public static WebArchive createTestArchive() {

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "a")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "s")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "u")
public void testPatternConstraint() {
Validator validator = TestUtil.getValidatorUnderTest();
PatternDummyEntity dummy = new PatternDummyEntity();
Expand Down
Expand Up @@ -66,8 +66,8 @@ public static WebArchive createTestArchive() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
public void testGetContainerElementMetaDataForRoles() {
PropertyDescriptor descriptor = getPropertyDescriptor( EmployeeImpl.class, "roles" );

Expand All @@ -93,8 +93,8 @@ public void testGetContainerElementMetaDataForRoles() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
public void testGetContainerElementMetaDataForDivision() {
PropertyDescriptor descriptor = getPropertyDescriptor( EmployeeImpl.class, "division" );

Expand All @@ -113,8 +113,8 @@ public void testGetContainerElementMetaDataForDivision() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
public void testGetContainerElementMetaDataForColleagues() {
PropertyDescriptor descriptor = getPropertyDescriptor( EmployeeImpl.class, "colleagues" );

Expand All @@ -133,8 +133,8 @@ public void testGetContainerElementMetaDataForColleagues() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
public void testGetContainerElementMetaDataForAddresses() {
PropertyDescriptor descriptor = getPropertyDescriptor( EmployeeImpl.class, "addresses" );

Expand Down
Expand Up @@ -216,8 +216,8 @@ public void testGetGroupConversionsReturnsEmptySetForMethodParameter() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
public void testGetContainerElementMetaDataForMethodParameter() {
ParameterDescriptor parameterDescriptor = Executables.parameterWithCascadedContainerElements().getParameterDescriptors().get( 1 );

Expand All @@ -227,8 +227,9 @@ public void testGetContainerElementMetaDataForMethodParameter() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "e")
public void testGetContainerElementMetaDataForConstructorParameter() {
ParameterDescriptor parameterDescriptor = Executables.constructorWithCascadedContainerElementsOnParameter().getParameterDescriptors().get( 0 );

Expand Down
Expand Up @@ -152,8 +152,9 @@ public void testGetGroupConversionsReturnsEmptySet() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "e")
public void testGetContainerElementMetaData() {
PropertyDescriptor descriptor = getPropertyDescriptor( ComplexOrder.class, "orderLines" );

Expand Down
Expand Up @@ -192,8 +192,9 @@ public void testGetGroupConversionsReturnsEmptySetForMethodReturnValue() {
@Test
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_ELEMENTDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "a")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "b")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "c")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "d")
@SpecAssertion(section = Sections.CONSTRAINTMETADATA_CONTAINERDESCRIPTOR, id = "e")
public void testGetContainerElementMetaDataForReturnValue() {
ReturnValueDescriptor returnValueDescriptor = Executables.returnValueWithCascadedContainerElements().getReturnValueDescriptor();

Expand Down
Expand Up @@ -45,7 +45,7 @@ public static WebArchive createTestArchive() {
}

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "s")
public void clockProviderIsUsed() {
FutureDummyEntity dummy = new FutureDummyEntity( ZonedDateTime.of( 2099, 1, 12, 5, 0, 0, 0, TZ_BERLIN ) );

Expand Down Expand Up @@ -97,7 +97,7 @@ public void clockProviderIsUsed() {
}

@Test
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "r")
@SpecAssertion(section = Sections.BUILTINCONSTRAINTS, id = "s")
public void clockProviderIsUsedForRelativePartials() {
FutureRelativePartialDummyEntity dummy = new FutureRelativePartialDummyEntity( ZonedDateTime.of( 2016, 6, 6, 14, 45, 0, 0, TZ_BERLIN ) );

Expand Down

0 comments on commit 5388c77

Please sign in to comment.