Skip to content

Commit

Permalink
Issue #122: Test MBeans with unreadable attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk23 committed Jul 3, 2016
1 parent 9218afd commit f96272a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ public interface AttributeTestJMXMBean {
List<List<String>> getListListStringValue();
String getSingleJsonStringValue();
String getMultiJsonStringValue();
void setWriteOnlyBooleanValue(boolean value);
}

public class AttributeTestJMX implements AttributeTestJMXMBean {
private boolean value;

public Object getNullValue() {
return null;
}
Expand Down Expand Up @@ -125,6 +128,10 @@ public String getSingleJsonStringValue() {
public String getMultiJsonStringValue() {
return "null true 1 1.23 \"val\" {\"key1\": [\"val1\", [1, 2]], \"key2\": \"val2\"} [1, 1.23]";
}

public void setWriteOnlyBooleanValue(boolean value) {
this.value = value;
}
}

public AttributeTest() throws Exception {
Expand Down

0 comments on commit f96272a

Please sign in to comment.