Code example for EventObject

Methods: getSource

0
	 * @tests java.util.EventObject#getSource() 
	 */ 
	public void test_getSource() { 
		// Test for method java.lang.Object java.util.EventObject.getSource() 
		assertTrue("Wrong source returned",
				myEventObject.getSource() == myObject);
	} 
 
	/** 
	 * @tests java.util.EventObject#toString() 
	 */ 
	public void test_toString() { 
		// Test for method java.lang.String java.util.EventObject.toString() 
		assertTrue("Incorrect toString returned: " + myEventObject.toString(),
				myEventObject.toString().indexOf(
						"java.util.EventObject[source=java.lang.Object@") == 0); 
	} 
 
	/** 
	 * Sets up the fixture, for example, open a network connection. This method 
Contextual code suggestions in your IDE  Get Codota for Java