949596979899100101102103104105106
{ ObjectName name = SimpleMBean.OBJECT_NAME; assertInstall(name); try { Simple simple = getSimple(); assertEquals(DEPENDSLIST1, simple.getObjectNamesAttribute1()); assertEquals(DEPENDSLIST2, simple.getObjectNamesAttribute2()); } finally { assertUninstall(name); }
110111112113114115116117118119120121122
{ ObjectName name = SimpleMBean.OBJECT_NAME; assertInstall(name); try { Simple simple = getSimple(); assertEquals(DEPENDSLIST, simple.getObjectNamesAttribute1()); assertNull(simple.getObjectNamesAttribute2()); } finally { assertUninstall(name); }
126127128129130131132133134135136137138
{ ObjectName name = SimpleMBean.OBJECT_NAME; assertInstall(name); try { Simple simple = getSimple(); assertEquals(DEPENDSLIST1, simple.getObjectNamesAttribute1()); assertNull(simple.getObjectNamesAttribute2()); } finally { assertUninstall(name); }
45464748495051525354555657
{ ObjectName name = SimpleMBean.OBJECT_NAME; assertInstall(name); try { Simple simple = getSimple(); assertNull(simple.getAttribute1()); assertNull(simple.getAttribute2()); } finally { assertUninstall(name); }
61626364656667686970717273
{ ObjectName name = SimpleMBean.OBJECT_NAME; assertInstall(name); try { Simple simple = getSimple(); assertEquals("value1", simple.getAttribute1()); assertNull(simple.getAttribute2()); } finally { assertUninstall(name); }
77787980818283848586878889
{ ObjectName name = SimpleMBean.OBJECT_NAME; assertInstall(name); try { Simple simple = getSimple(); assertEquals("value1", simple.getAttribute1()); assertEquals("value2", simple.getAttribute2()); } finally { assertUninstall(name); }
93949596979899100101102103104105
109110111112113114115116117118119120121
666768697071727374757677
ObjectName name = SimpleMBean.OBJECT_NAME; List<ObjectName> names = assertDeploy(name); try { Simple test = getSimple(); Simple other = getMBean(Simple.class, OTHER, "Instance"); assertEquals(other, test.getSimple()); } finally {
104105106107108109110111112113114115116
ObjectName name = SimpleMBean.OBJECT_NAME; List<ObjectName> names = assertDeploy(name); try { Simple test = getSimple(); assertEquals("PropertyInjection", test.getAString()); } finally { assertUndeploy(name, names); }