File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
springboot-starter/src/test/java/com/codingapi/springboot/framework/domain Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 55
66@ Setter
77@ Getter
8- public class Ainimal {
8+ public class Animal {
99
1010 private String name ;
1111}
Original file line number Diff line number Diff line change 99public class Demo implements JsonSerializable , MapSerializable {
1010
1111 @ Getter
12- private long id ;
12+ private final long id ;
1313
1414 @ Getter
1515 private String name ;
1616
1717 @ Getter
18- private Ainimal ainimal ;
18+ private Animal animal ;
1919
2020 public Demo (String name ) {
2121 this .name = name ;
2222 this .id = System .currentTimeMillis ();
23- this .ainimal = new Ainimal ();
24- this .ainimal .setName ("cat" );
23+ this .animal = new Animal ();
24+ this .animal .setName ("cat" );
2525 }
2626
2727 public void changeName (String name ) {
@@ -35,7 +35,7 @@ public void changeName(String name) {
3535 EventPusher .push (new DemoChangeEvent (beforeName , name ));
3636 }
3737
38- public void changeAinimalName (String name ) {
39- this .ainimal .setName (name );
38+ public void changeAnimalName (String name ) {
39+ this .animal .setName (name );
4040 }
4141}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class DomainProxyFactoryTest {
1010 @ Test
1111 void createEntity () {
1212 Demo demo = DomainProxyFactory .create (Demo .class , "test" );
13- demo .changeAinimalName ("123" );
14- demo .changeAinimalName ("234" );
13+ demo .changeAnimalName ("123" );
14+ demo .changeAnimalName ("234" );
1515 demo .changeName ("test" );
1616 demo .changeName ("test123" );
1717 System .out .println (demo );
You can’t perform that action at this time.
0 commit comments