-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+Test first: New Testcase for Issue #70
- Loading branch information
1 parent
5ff22ec
commit 34c07ff
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
deepsampler-provider-guice/record/polymorphicSamplesCanBeRecordedAndLoaded.json
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,18 @@ | ||
{ | ||
"id" : "6ff9ee24-f86a-4b8e-becc-7e3c46dd6e45", | ||
"sampleMethodToSampleMap" : { | ||
"public de.ppi.deepsampler.provider.common.Animal de.ppi.deepsampler.provider.common.TestService.getAnimal()" : { | ||
"callMap" : [ { | ||
"parameter" : { | ||
"args" : [ ] | ||
}, | ||
"returnValue" : { | ||
"@type" : "de.ppi.deepsampler.persistence.bean.DefaultPersistentBean", | ||
"values" : { | ||
"0$name" : "Porthos" | ||
} | ||
} | ||
} ] | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
deepsampler-provider/src/testFixtures/java/de/ppi/deepsampler/provider/common/Animal.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,6 @@ | ||
package de.ppi.deepsampler.provider.common; | ||
|
||
public interface Animal { | ||
|
||
String getName(); | ||
} |
19 changes: 19 additions & 0 deletions
19
deepsampler-provider/src/testFixtures/java/de/ppi/deepsampler/provider/common/Dog.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,19 @@ | ||
package de.ppi.deepsampler.provider.common; | ||
|
||
public class Dog implements Animal { | ||
|
||
private String name; | ||
|
||
public Dog(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
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