-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also find getters that's capitalization does not match the field name (…
…#29)
- Loading branch information
Showing
6 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...-matcher-generator-e2e-test/src/main/java/ru/yandex/qatools/proc/test/Capitalization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package ru.yandex.qatools.proc.test; | ||
|
||
import ru.yandex.qatools.processors.matcher.gen.annotations.GenerateMatcher; | ||
|
||
@GenerateMatcher | ||
public class Capitalization { | ||
private String id; | ||
|
||
public String getID() { | ||
return id; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...cher-generator-e2e-test/src/test/java/ru/yandex/qatools/proc/test/CapitalizationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package ru.yandex.qatools.proc.test; | ||
|
||
import org.hamcrest.Matcher; | ||
import org.junit.Test; | ||
|
||
import static org.hamcrest.CoreMatchers.notNullValue; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
|
||
/** | ||
* @author Vladislav Bauer | ||
*/ | ||
|
||
public class CapitalizationTest { | ||
|
||
@Test | ||
public void shouldFindMatcher() throws Exception { | ||
assertThat(CapitalizationMatchers.class.getDeclaredMethod("withId", Matcher.class), notNullValue()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...tor/src/test/java/ru/yandex/qatools/processors/matcher/gen/testclasses/WithoutGetter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ru.yandex.qatools.processors.matcher.gen.testclasses; | ||
|
||
public class WithoutGetter { | ||
private String prop; | ||
} |