@@ -176,7 +176,10 @@ public void shouldThrowOnCreateConnectionWithNullData() {
176176
177177 @ Test
178178 public void shouldCreateConnection () throws Exception {
179- Request <Connection > request = api .connections ().create (new Connection ("my-connection" , "auth0" ));
179+ Connection createConnection = new Connection ("my-connection" , "auth0" );
180+ createConnection .setDomainConnection (true );
181+ createConnection .setShowAsButton (true );
182+ Request <Connection > request = api .connections ().create (createConnection );
180183 assertThat (request , is (notNullValue ()));
181184
182185 server .jsonResponse (MGMT_CONNECTION , 200 );
@@ -188,7 +191,7 @@ public void shouldCreateConnection() throws Exception {
188191 assertThat (recordedRequest , hasHeader ("Authorization" , "Bearer apiToken" ));
189192
190193 Map <String , Object > body = bodyFromRequest (recordedRequest );
191- assertThat (body .size (), is (5 ));
194+ assertThat (body .size (), is (4 ));
192195 assertThat (body , hasEntry ("name" , "my-connection" ));
193196 assertThat (body , hasEntry ("strategy" , "auth0" ));
194197
@@ -244,7 +247,7 @@ public void shouldUpdateConnection() throws Exception {
244247 assertThat (recordedRequest , hasHeader ("Authorization" , "Bearer apiToken" ));
245248
246249 Map <String , Object > body = bodyFromRequest (recordedRequest );
247- assertThat (body .size (), is (5 ));
250+ assertThat (body .size (), is (4 ));
248251 assertThat (body , hasEntry ("name" , "my-connection" ));
249252 assertThat (body , hasEntry ("strategy" , "auth0" ));
250253
0 commit comments