Title: [781] trunk/examples/hellbound/src/behaviour/com/sirenian/hellbound/gui/PitPanelBehaviour.java: [EK] Adding the HeadlessChecker to the behaviours (how did these ever work?!)
Revision
781
Author
sirenian
Date
2007-08-14 02:36:24 -0500 (Tue, 14 Aug 2007)

Log Message

[EK] Adding the HeadlessChecker to the behaviours (how did these ever work?!)

Modified Paths

Diff

Modified: trunk/examples/hellbound/src/behaviour/com/sirenian/hellbound/gui/PitPanelBehaviour.java (780 => 781)

--- trunk/examples/hellbound/src/behaviour/com/sirenian/hellbound/gui/PitPanelBehaviour.java	2007-08-12 11:45:51 UTC (rev 780)
+++ trunk/examples/hellbound/src/behaviour/com/sirenian/hellbound/gui/PitPanelBehaviour.java	2007-08-14 07:36:24 UTC (rev 781)
@@ -8,6 +8,7 @@
 
 import org.jbehave.core.mock.Matcher;
 import org.jbehave.core.mock.UsingMatchers;
+import org.jbehave.threaded.swing.HeadlessChecker;
 
 import com.sirenian.hellbound.Hellbound;
 import com.sirenian.hellbound.domain.Segment;
@@ -38,6 +39,7 @@
 	);
 	
 	public void shouldBeScaledToFitThePit() {
+		new HeadlessChecker().check();
 		JFrame frame = new JFrame();
 		PitPanel panel = new PitPanel(SCALE, WIDTH, HEIGHT, Hellbound.COLORMAP);		
 		frame.getContentPane().add(panel);
@@ -47,6 +49,7 @@
 	}
 	
 	public void shouldDrawGlyphsAndRepaintWithNoError() {
+		new HeadlessChecker().check();
 		
 		final RenderedPit renderedPit = new RenderedPit(SCALE, WIDTH, HEIGHT, COLORMAP);
 		
@@ -63,6 +66,7 @@
 	}
 
 	public void shouldCleanGlyphsAfterMovement() {
+		new HeadlessChecker().check();
 		
 		RenderedPit renderedPit = new RenderedPit(SCALE, WIDTH, HEIGHT, COLORMAP);
 		PitPanel panel = createPitPanelWithDoublePaint(renderedPit);
@@ -81,6 +85,7 @@
 	}
     
     public void shouldNotCleanGlyphsOfOtherTypesAfterMovement() {
+		new HeadlessChecker().check();
         
         RenderedPit renderedPit = new RenderedPit(SCALE, WIDTH, HEIGHT, COLORMAP);
         PitPanel panel = createPitPanelWithDoublePaint(renderedPit);
@@ -97,6 +102,7 @@
     }    
 
 	private JFrame createFrameAndDisplay(PitPanel panel) {
+		new HeadlessChecker().check();
 		JFrame frame = new JFrame();
 		frame.getContentPane().add(panel);
 		frame.pack();
@@ -105,6 +111,7 @@
 	}
 
 	private PitPanel createPitPanelWithDoublePaint(final RenderedPit pg) {
+		new HeadlessChecker().check();
 		PitPanel panel = new PitPanel(SCALE, WIDTH, HEIGHT, Hellbound.COLORMAP) {
 
 			private static final long serialVersionUID = 1L;


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to