@@ -101,7 +101,7 @@ void setUp() {
101
101
void testGuildInstantiation () {
102
102
final String name = "name" ;
103
103
final String description = "description" ;
104
- Guild guild = new Guild (name , description , null , false );
104
+ Guild guild = new Guild (name , description , null , false , true );
105
105
assertEquals (guild .getName (), name );
106
106
assertEquals (guild .getDescription (), description );
107
107
}
@@ -112,7 +112,7 @@ void testGuildInstantiation2() {
112
112
final String name = "name" ;
113
113
final String description = "description" ;
114
114
final String link = "https://www.compass.objectcomputing.com/guilds/name" ;
115
- Guild guild = new Guild (id , name , description , link , false );
115
+ Guild guild = new Guild (id , name , description , link , false , true );
116
116
assertEquals (guild .getId (), id );
117
117
assertEquals (guild .getName (), name );
118
118
assertEquals (guild .getDescription (), description );
@@ -126,7 +126,7 @@ void testConstraintViolation() {
126
126
final UUID id = UUID .randomUUID ();
127
127
final String name = "name" ;
128
128
final String description = "description" ;
129
- Guild guild = new Guild (id , name , description , null , false );
129
+ Guild guild = new Guild (id , name , description , null , false , true );
130
130
131
131
guild .setName ("" );
132
132
@@ -143,8 +143,8 @@ void testEquals() {
143
143
final String name = "name" ;
144
144
final String description = "description" ;
145
145
final String link = "https://www.compass.objectcomputing.com/guilds/name" ;
146
- Guild g = new Guild (id , name , description , link , false );
147
- Guild g2 = new Guild (id , name , description , link , false );
146
+ Guild g = new Guild (id , name , description , link , false , true );
147
+ Guild g2 = new Guild (id , name , description , link , false , true );
148
148
149
149
assertEquals (g , g2 );
150
150
@@ -160,7 +160,7 @@ void testHash() {
160
160
final String name = "name" ;
161
161
final String description = "description" ;
162
162
final String link = "https://www.compass.objectcomputing.com/guilds/name" ;
163
- Guild g = new Guild (id , name , description , link , false );
163
+ Guild g = new Guild (id , name , description , link , false , true );
164
164
165
165
map .put (g , true );
166
166
@@ -174,7 +174,7 @@ void testToString() {
174
174
final String description = "description------description" ;
175
175
final String link = "https://www.compass.objectcomputing.com/guilds/name" ;
176
176
final String isCommunity = "false" ;
177
- Guild g = new Guild (id , name , description ,link , false );
177
+ Guild g = new Guild (id , name , description ,link , false , true );
178
178
179
179
String s = g .toString ();
180
180
assertTrue (s .contains (name ));
@@ -261,7 +261,7 @@ void testSaveGuildWithValidData() {
261
261
MemberProfile memberProfile = new MemberProfile ();
262
262
memberProfile .
setWorkEmail (
"[email protected] " );
263
263
264
- Guild guild = new Guild (UUID .randomUUID (), "test" , "example" , link , true );
264
+ Guild guild = new Guild (UUID .randomUUID (), "test" , "example" , link , true , true );
265
265
when (guildsRepo .search (any (), any ())).thenReturn (Collections .emptyList ());
266
266
when (guildsRepo .save (any ())).thenReturn (guild );
267
267
when (memberProfileServices .getById (any ())).thenReturn (memberProfile );
0 commit comments