File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed
main/java/io/github/jsonSnapshot
test/java/io/github/jsonSnapshot Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 5
5
<modelVersion >4.0.0</modelVersion >
6
6
<groupId >io.github.json-snapshot</groupId >
7
7
<artifactId >json-snapshot</artifactId >
8
- <version >0.0.1 </version >
8
+ <version >0.0.2 </version >
9
9
<packaging >jar</packaging >
10
10
11
11
<name >json-snapshot</name >
Original file line number Diff line number Diff line change @@ -74,6 +74,6 @@ private String takeSnapshot() {
74
74
}
75
75
76
76
public String getSnapshotName () {
77
- return clazz .getName () + "| with | " + method .getName () + "=" ;
77
+ return clazz .getName () + ". " + method .getName () + "=" ;
78
78
}
79
79
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public void shouldMatchSnapshotFour() {
48
48
public void shouldMatchSnapshotFive () {
49
49
expectedException .expect (SnapshotMatchException .class );
50
50
expectedException .expectMessage (startsWith ("Error on: \n " +
51
- "io.github.jsonSnapshot.SnapshotIntegrationTest| with | shouldMatchSnapshotFive=[" ));
51
+ "io.github.jsonSnapshot.SnapshotIntegrationTest. shouldMatchSnapshotFive=[" ));
52
52
expect (FakeObject .builder ().id ("anyId5" ).value (6 ).name ("anyName5" ).build ()).toMatchSnapshot ();
53
53
}
54
54
}
Original file line number Diff line number Diff line change 1
- io .github .jsonSnapshot .SnapshotIntegrationTest | with | shouldMatchSnapshotThree = [
1
+ io .github .jsonSnapshot .SnapshotIntegrationTest . shouldMatchSnapshotThree = [
2
2
{
3
3
" id" : " anyId3" ,
4
4
" value" : 3 ,
@@ -7,7 +7,7 @@ io.github.jsonSnapshot.SnapshotIntegrationTest| with |shouldMatchSnapshotThree=[
7
7
]
8
8
9
9
10
- io .github .jsonSnapshot .SnapshotIntegrationTest | with | shouldMatchSnapshotFive = [
10
+ io .github .jsonSnapshot .SnapshotIntegrationTest . shouldMatchSnapshotFive = [
11
11
{
12
12
" id" : " anyId5" ,
13
13
" value" : 5 ,
@@ -16,7 +16,7 @@ io.github.jsonSnapshot.SnapshotIntegrationTest| with |shouldMatchSnapshotFive=[
16
16
]
17
17
18
18
19
- io .github .jsonSnapshot .SnapshotIntegrationTest | with | shouldMatchSnapshotFour = [
19
+ io .github .jsonSnapshot .SnapshotIntegrationTest . shouldMatchSnapshotFour = [
20
20
{
21
21
" id" : " anyId4" ,
22
22
" value" : 4 ,
@@ -25,7 +25,7 @@ io.github.jsonSnapshot.SnapshotIntegrationTest| with |shouldMatchSnapshotFour=[
25
25
]
26
26
27
27
28
- io .github .jsonSnapshot .SnapshotIntegrationTest | with | shouldMatchSnapshotOne = [
28
+ io .github .jsonSnapshot .SnapshotIntegrationTest . shouldMatchSnapshotOne = [
29
29
{
30
30
" id" : " anyId1" ,
31
31
" value" : 1 ,
@@ -34,7 +34,7 @@ io.github.jsonSnapshot.SnapshotIntegrationTest| with |shouldMatchSnapshotOne=[
34
34
]
35
35
36
36
37
- io .github .jsonSnapshot .SnapshotIntegrationTest | with | shouldMatchSnapshotTwo = [
37
+ io .github .jsonSnapshot .SnapshotIntegrationTest . shouldMatchSnapshotTwo = [
38
38
{
39
39
" id" : " anyId2" ,
40
40
" value" : 2 ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public void should1ShowSnapshotSuccessfully() throws IOException {
41
41
SnapshotMatcher .expect ("any type of object" ).toMatchSnapshot ();
42
42
43
43
assertThat (StringUtils .join (Files .readAllLines (f .toPath ()), "\n " )).
44
- isEqualTo ("io.github.jsonSnapshot.SnapshotMatcherTest| with | should1ShowSnapshotSuccessfully=[\n " +
44
+ isEqualTo ("io.github.jsonSnapshot.SnapshotMatcherTest. should1ShowSnapshotSuccessfully=[\n " +
45
45
" \" any type of object\" \n " +
46
46
"]" );
47
47
@@ -58,10 +58,10 @@ public void should2SecondSnapshotExecutionSuccessfully() throws IOException {
58
58
SnapshotMatcher .expect ("any second type of object" , "any third type of object" ).toMatchSnapshot ();
59
59
60
60
assertThat (StringUtils .join (Files .readAllLines (f .toPath ()), "\n " )).
61
- isEqualTo ("io.github.jsonSnapshot.SnapshotMatcherTest| with | should1ShowSnapshotSuccessfully=[\n " +
61
+ isEqualTo ("io.github.jsonSnapshot.SnapshotMatcherTest. should1ShowSnapshotSuccessfully=[\n " +
62
62
" \" any type of object\" \n " +
63
63
"]\n \n \n " +
64
- "io.github.jsonSnapshot.SnapshotMatcherTest| with | should2SecondSnapshotExecutionSuccessfully=[\n " +
64
+ "io.github.jsonSnapshot.SnapshotMatcherTest. should2SecondSnapshotExecutionSuccessfully=[\n " +
65
65
" \" any second type of object\" ,\n " +
66
66
" \" any third type of object\" \n " +
67
67
"]" );
Original file line number Diff line number Diff line change 15
15
public class SnapshotTest {
16
16
17
17
private static final String FILE_PATH = "src/test/java/anyFilePath" ;
18
- private static final String SNAPSHOT_NAME = "java.lang.String| with | toString=" ;
19
- private static final String SNAPSHOT = "java.lang.String| with | toString=[\n \" anyObject\" \n ]" ;
18
+ private static final String SNAPSHOT_NAME = "java.lang.String. toString=" ;
19
+ private static final String SNAPSHOT = "java.lang.String. toString=[\n \" anyObject\" \n ]" ;
20
20
21
21
private SnapshotFile snapshotFile ;
22
22
You can’t perform that action at this time.
0 commit comments