Java Code Examples for org.springframework.jmx.IJmxTestBean#setName()

The following examples show how to use org.springframework.jmx.IJmxTestBean#setName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MBeanClientInterceptorTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Test
public void testSetAttributeValue() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Rob Harrop");
	assertEquals("The name of the bean should have been updated", "Rob Harrop", target.getName());
}
 
Example 2
Source File: MBeanClientInterceptorTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Test
public void testSetAttributeValue() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Rob Harrop");
	assertEquals("The name of the bean should have been updated", "Rob Harrop", target.getName());
}
 
Example 3
Source File: MBeanClientInterceptorTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Test
public void testSetAttributeValue() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Rob Harrop");
	assertEquals("The name of the bean should have been updated", "Rob Harrop", target.getName());
}
 
Example 4
Source File: MBeanClientInterceptorTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Test(expected = IllegalArgumentException.class)
public void testSetAttributeValueWithRuntimeException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen");
}
 
Example 5
Source File: MBeanClientInterceptorTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Test(expected = ClassNotFoundException.class)
public void testSetAttributeValueWithCheckedException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen Class");
}
 
Example 6
Source File: MBeanClientInterceptorTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Test(expected = IOException.class)
public void testSetAttributeValueWithIOException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen IO");
}
 
Example 7
Source File: MBeanClientInterceptorTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Test(expected = IllegalArgumentException.class)
public void testSetAttributeValueWithRuntimeException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen");
}
 
Example 8
Source File: MBeanClientInterceptorTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Test(expected = ClassNotFoundException.class)
public void testSetAttributeValueWithCheckedException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen Class");
}
 
Example 9
Source File: MBeanClientInterceptorTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Test(expected = IOException.class)
public void testSetAttributeValueWithIOException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen IO");
}
 
Example 10
Source File: MBeanClientInterceptorTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Test(expected = IllegalArgumentException.class)
public void testSetAttributeValueWithRuntimeException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen");
}
 
Example 11
Source File: MBeanClientInterceptorTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Test(expected = ClassNotFoundException.class)
public void testSetAttributeValueWithCheckedException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen Class");
}
 
Example 12
Source File: MBeanClientInterceptorTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Test(expected = IOException.class)
public void testSetAttributeValueWithIOException() throws Exception {
	assumeTrue(runTests);
	IJmxTestBean proxy = getProxy();
	proxy.setName("Juergen IO");
}