Skip to content

Commit

Permalink
reformat DataProviderResolverContextTest
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschmid committed Jan 14, 2018
1 parent 4a2913f commit 98e8825
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfTest
}

@Test
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfResolverClassesIsNull()
{
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfResolverClassesIsNull() {
// Given:
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("'resolverClasses' must not be null");
Expand All @@ -112,8 +111,7 @@ public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfReso
}

@Test
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfResolveStrategyIsNull()
{
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfResolveStrategyIsNull() {
// Given:
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("'resolveStrategy' must not be null");
Expand All @@ -139,8 +137,7 @@ public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfLoca
}

@Test
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfDataProviderAnnotationClassIsNull()
{
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfDataProviderAnnotationClassIsNull() {
// Given:
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("'dataProviderAnnotationClass' must not be null");
Expand All @@ -153,8 +150,7 @@ public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfData
}

@Test
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfDataProviderNameIsNull()
{
public void testDataProviderResolverContextShouldThrowNullPointerExceptionIfDataProviderNameIsNull() {
// Given:
expectedException.expect(NullPointerException.class);
expectedException.expectMessage("'dataProviderName' must not be null");
Expand Down Expand Up @@ -216,8 +212,7 @@ public void testUseDataProviderNameConventionShouldReturnTrueIfDatProviderIsUseC
final String dataProviderName = DataProviderResolverContext.METHOD_NAME_TO_USE_CONVENTION;

DataProviderResolverContext underTest = new DataProviderResolverContext(testMethod, resolverClasses,
resolveStrategy, locations, dataProviderAnnotationClass,
dataProviderName);
resolveStrategy, locations, dataProviderAnnotationClass, dataProviderName);

// When:
boolean result = underTest.useDataProviderNameConvention();
Expand Down

0 comments on commit 98e8825

Please sign in to comment.