assertTrue( label1.listeners.contains( clientListener1 ) ); assertTrue( label2.listeners.contains( clientListener2 ) );
assertTrue( CoreTestUtil.getListeners( label1 ).contains( clientListener1 ) ); assertTrue( CoreTestUtil.getListeners( label2 ).contains( clientListener2 ) );
	public void testBroadcast( )	{		MyActionListener styleListener = new MyActionListener( );		MyActionListener clientListener1 = new MyActionListener( );		MyActionListener clientListener2 = new MyActionListener( );		style.addListener( styleListener );		label1.addListener( clientListener1 );		label2.addListener( clientListener2 );		assertTrue( label1.listeners.contains( clientListener1 ) );		assertTrue( label2.listeners.contains( clientListener2 ) );		// Set new style and broadcast		label1.setStyle( style );		label2.setStyle( style );		NotificationEvent ev = new ExtendsEvent( style );		style.broadcast( ev );		// Check listeners		assertTrue( styleListener.done );		assertEquals( NotificationEvent.DIRECT, styleListener.path );		assertTrue( clientListener1.done );		assertEquals( NotificationEvent.STYLE_CLIENT, clientListener1.path );		assertTrue( clientListener2.done );		assertEquals( NotificationEvent.STYLE_CLIENT, clientListener2.path );	}