Skip to content

Commit

Permalink
fixed spelling mistake in 'description'; removed some false positive
Browse files Browse the repository at this point in the history
duplicates
  • Loading branch information
aaschmid committed Apr 25, 2014
1 parent 7b18622 commit f27c6a6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void testDescribeShouldReturnFilterDescripe() {
}

@Test
public void testDescribtionPatternShouldNotMatchEmptyString() {
public void testDescriptionPatternShouldNotMatchEmptyString() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("");

Expand All @@ -239,7 +239,7 @@ public void testDescribtionPatternShouldNotMatchEmptyString() {
}

@Test
public void testDescribtionPatternShouldMatchDescriptionWithoutParams() {
public void testDescriptionPatternShouldMatchDescriptionWithoutParams() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("testMain(Clazz)");

Expand All @@ -252,7 +252,7 @@ public void testDescribtionPatternShouldMatchDescriptionWithoutParams() {
}

@Test
public void testDescribtionPatternShouldMatchDescriptionWithParams() {
public void testDescriptionPatternShouldMatchDescriptionWithParams() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("testMain[1: test](Clazz)");

Expand All @@ -265,7 +265,7 @@ public void testDescribtionPatternShouldMatchDescriptionWithParams() {
}

@Test
public void testDescribtionPatternShouldMatchescriptionWithParamsContainingParentheses() {
public void testDescriptionPatternShouldMatchescriptionWithParamsContainingParentheses() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("testMain[1: (test)](Clazz)");

Expand All @@ -278,9 +278,9 @@ public void testDescribtionPatternShouldMatchescriptionWithParamsContainingParen
}

@Test
public void testDescribtionPatternShouldNotMatchDescriptionWithoutParamsAndSpaceInMethodName() {
public void testDescriptionPatternShouldNotMatchDescriptionWithoutParamsAndSpaceInMethodName() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("Method testMain(Clazz)");
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("Method test Main(Clazz)");

// When:
boolean result = matcher.matches();
Expand All @@ -290,9 +290,9 @@ public void testDescribtionPatternShouldNotMatchDescriptionWithoutParamsAndSpace
}

@Test
public void testDescribtionPatternShouldNotMatchDescriptionWithParamsAndSpaceInMethodName() {
public void testDescriptionPatternShouldNotMatchDescriptionWithParamsAndSpaceInMethodName() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("Method testMain[1: test](Clazz)");
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("Method test Main[1: test](Clazz)");

// When:
boolean result = matcher.matches();
Expand All @@ -302,7 +302,7 @@ public void testDescribtionPatternShouldNotMatchDescriptionWithParamsAndSpaceInM
}

@Test
public void testDescribtionPatternShouldNotMatchDescriptionWithMethodNameContainingBrackets() {
public void testDescriptionPatternShouldNotMatchDescriptionWithMethodNameContainingBracketsAndNotHaveThemInGroup1() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("Method test[M]ain(Clazz)");

Expand All @@ -314,33 +314,7 @@ public void testDescribtionPatternShouldNotMatchDescriptionWithMethodNameContain
}

@Test
public void testDescribtionPatternShouldFindDescriptionWithParams() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("testMain[1: test](Clazz)");

// When:
boolean result = matcher.find();

// Then:
assertThat(result).isTrue();
assertThatMatcherGroupsAre(matcher, "testMain", "[1: test]", "1", "Clazz");
}

@Test
public void testDescribtionPatternShouldFindDescriptionWithoutParams() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("testMain[1: test](Clazz)");

// When:
boolean result = matcher.find();

// Then:
assertThat(result).isTrue();
assertThatMatcherGroupsAre(matcher, "testMain", "[1: test]", "1", "Clazz");
}

@Test
public void testDescribtionPatternShouldFindDescriptionWithMethodNameContainingBracketsAndNotHaveThemInGroup1() {
public void testDescriptionPatternShouldFindDescriptionWithMethodNameContainingBracketsAndNotHaveThemInGroup1() {
// Given:
Matcher matcher = DataProviderFilter.DESCRIPTION_PATTERN.matcher("Method test[M]ain(Clazz)");

Expand Down
Loading

0 comments on commit f27c6a6

Please sign in to comment.