Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
126c8fd
commit cc1637d
Showing
6 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
31 changes: 16 additions & 15 deletions
31
approvaltests-tests/src/test/java/org/approvaltests/Circular.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package org.approvaltests; | ||
|
||
public class Circular { | ||
Circular parent; | ||
String label; | ||
|
||
public Circular(Circular parent, String label) { | ||
this.parent = parent; | ||
this.label = label; | ||
} | ||
|
||
public static Circular getIndirectCircularReference() { | ||
Circular level1 = new Circular(null, "middle"); | ||
Circular level2 = new Circular(level1, "child"); | ||
level1.parent = level2; | ||
return level1; | ||
} | ||
public class Circular | ||
{ | ||
Circular parent; | ||
String label; | ||
public Circular(Circular parent, String label) | ||
{ | ||
this.parent = parent; | ||
this.label = label; | ||
} | ||
public static Circular getIndirectCircularReference() | ||
{ | ||
Circular level1 = new Circular(null, "middle"); | ||
Circular level2 = new Circular(level1, "child"); | ||
level1.parent = level2; | ||
return level1; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,4 @@ public void testBasicFormatting() | |
c.parent = c; | ||
JsonXstreamApprovals.verifyAsJson(c); | ||
} | ||
|
||
} |
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