@@ -42,7 +42,7 @@ public void shouldGenerateNoSuchElementFromBlankUpdate() {
42
42
@ Test
43
43
public void shouldGenerateValidSQL () {
44
44
Developer dev = new Developer ();
45
- dev .set ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "inserted " );
45
+ dev .set ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "123 Pine St " );
46
46
the (Base .exec (dev .toInsert ())).shouldBeEqual (1 );
47
47
dev .set ("address" , "updated" );
48
48
the (Base .exec (dev .toUpdate ())).shouldBeEqual (1 );
@@ -60,15 +60,15 @@ public void shouldGenerateValidSQL() {
60
60
61
61
@ Test
62
62
public void shouldReturnNullWithWrongPKs () {
63
- Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "inserted " );
63
+ Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "123 Pine St " );
64
64
the (Developer .findByCompositeKeys ("Johnny" , "Casher" , "j.cash@spam.org" )).shouldBeNull ();
65
65
the (Developer .findByCompositeKeys ("John" , "Cash" , "j.cash@spam.org" )).shouldBeNull ();
66
66
the (Developer .findByCompositeKeys ("Johnny" , "Cash" , "j.cash@spam.com" )).shouldBeNull ();
67
67
}
68
68
69
69
@ Test
70
70
public void shouldDeleteByPK () {
71
- Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "inserted " );
71
+ Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "123 Pine St " );
72
72
Developer dev = Developer .findByCompositeKeys ("Johnny" , "Cash" , "j.cash@spam.org" );
73
73
the (dev ).shouldNotBeNull ();
74
74
the (Developer .count ()).shouldBeEqual (1 );
@@ -81,15 +81,15 @@ public void shouldDeleteByPK() {
81
81
public void shouldBeNew () {
82
82
83
83
Developer dev = new Developer ();
84
- dev .set ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "inserted " );
84
+ dev .set ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "123 Pine St " );
85
85
the (dev .isNew ()).shouldBeTrue ();
86
86
87
- Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "inserted " );
87
+ Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash" , "email" , "j.cash@spam.org" , "address" , "123 Pine St " );
88
88
dev = Developer .findByCompositeKeys ("Johnny" , "Cash" , "j.cash@spam.org" );
89
89
the (dev ).shouldNotBeNull ();
90
90
the (dev .isNew ()).shouldBeFalse ();
91
91
92
- dev = Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash2" , "email" , "j.cash@spam.org" , "address" , "inserted " );
92
+ dev = Developer .createIt ("first_name" , "Johnny" , "last_name" , "Cash2" , "email" , "j.cash@spam.org" , "address" , "123 Pine St " );
93
93
the (dev .isNew ()).shouldBeFalse ();
94
94
}
95
95
}
0 commit comments