Skip to content

Commit ce2e488

Browse files
committed
Merged master
1 parent c69520c commit ce2e488

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/main/java/com/auth0/json/mgmt/connections/Connection.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class Connection {
3535
@JsonProperty("realms")
3636
private List<String> realms;
3737
@JsonProperty("show_as_button")
38-
private boolean showAsButton;
38+
private Boolean showAsButton;
3939
@JsonProperty("is_domain_connection")
40-
private boolean isDomainConnection;
40+
private Boolean isDomainConnection;
4141

4242
public Connection() {
4343
}
@@ -193,7 +193,8 @@ public void setRealms(List<String> realms) {
193193
*
194194
* @return the show as button flag.
195195
*/
196-
public boolean isShowAsButton() {
196+
@JsonProperty("show_as_button")
197+
public Boolean isShowAsButton() {
197198
return showAsButton;
198199
}
199200

@@ -202,7 +203,8 @@ public boolean isShowAsButton() {
202203
*
203204
* @param showAsButton the show as button flag to set.
204205
*/
205-
public void setShowAsButton(boolean showAsButton) {
206+
@JsonProperty("show_as_button")
207+
public void setShowAsButton(Boolean showAsButton) {
206208
this.showAsButton = showAsButton;
207209
}
208210

@@ -211,7 +213,7 @@ public void setShowAsButton(boolean showAsButton) {
211213
* @return the domain connection flag.
212214
*/
213215
@JsonProperty("is_domain_connection")
214-
public boolean isDomainConnection() {
216+
public Boolean isDomainConnection() {
215217
return isDomainConnection;
216218
}
217219

@@ -220,7 +222,7 @@ public boolean isDomainConnection() {
220222
* @param domainConnection the domain connection flag to set.
221223
*/
222224
@JsonProperty("is_domain_connection")
223-
public void setDomainConnection(boolean domainConnection) {
225+
public void setDomainConnection(Boolean domainConnection) {
224226
this.isDomainConnection = domainConnection;
225227
}
226228
}

src/test/java/com/auth0/client/mgmt/ConnectionsEntityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void shouldUpdateConnection() throws Exception {
247247
assertThat(recordedRequest, hasHeader("Authorization", "Bearer apiToken"));
248248

249249
Map<String, Object> body = bodyFromRequest(recordedRequest);
250-
assertThat(body.size(), is(4));
250+
assertThat(body.size(), is(2));
251251
assertThat(body, hasEntry("name", "my-connection"));
252252
assertThat(body, hasEntry("strategy", "auth0"));
253253

0 commit comments

Comments
 (0)