Skip to content

Commit

Permalink
Use new serialization files.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 30, 2024
1 parent f35fadd commit 40f786f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/test/java/edu/hm/hafner/analysis/DuplicationGroupTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
* @author Ullrich Hafner
*/
class DuplicationGroupTest extends SerializableTest<DuplicationGroup> {
/**
* Serializes a code duplication to a file. Use this method in case the properties have been changed and the
* readResolve method has been adapted accordingly so that the old serialization still can be read.
*
* @param args
* not used
*
* @throws IOException
* if the file could not be written
*/
public static void main(final String... args) throws IOException {
new DuplicationGroupTest().createSerializationFile();
}

private static final String SERIALIZATION_NAME = "dry.ser";
private static final String CODE_FRAGMENT = "fragment";

Expand Down Expand Up @@ -128,4 +114,18 @@ void shouldObeyEqualsContract() {
.verify();
}
}

/**
* Serializes a code duplication to a file. Use this method in case the properties have been changed and the
* readResolve method has been adapted accordingly so that the old serialization still can be read.
*
* @param args
* not used
*
* @throws IOException
* if the file could not be written
*/
public static void main(final String... args) throws IOException {
new DuplicationGroupTest().createSerializationFile();
}
}
Binary file modified src/test/resources/edu/hm/hafner/analysis/dry.ser
Binary file not shown.
Binary file modified src/test/resources/edu/hm/hafner/analysis/issue.ser
Binary file not shown.
Binary file modified src/test/resources/edu/hm/hafner/analysis/report.ser
Binary file not shown.

0 comments on commit 40f786f

Please sign in to comment.