FileDocCategorySizeDatePackage
TabsTest.javaAPI DocExample950Sun Feb 22 14:58:34 GMT 2004None

TabsTest

public class TabsTest extends TestCase
author
ian To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Fields Summary
private Tabs
t4
private Tabs
t8
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		junit.textui.TestRunner.run(TabsTest.class);
	
public voidsetUp()

		t4 = new Tabs(4);
		t8 = new Tabs();
	
public voidtestGetTabSpacing()

		assertEquals(t4.getTabSpacing(), 4);
		assertEquals(t8.getTabSpacing(), Tabs.DEFTABSPACE);
	
public voidtestIsTabStop()

		assertEquals(false, t4.isTabStop(0));
		assertEquals(false, t4.isTabStop(1));
		assertEquals(false, t4.isTabStop(2));
		assertEquals(true,  t4.isTabStop(3));
		assertEquals(false, t4.isTabStop(4));
		assertEquals(false, t4.isTabStop(5));
		assertEquals(false, t4.isTabStop(6));
		assertEquals(true,  t4.isTabStop(7));
		assertEquals(false, t4.isTabStop(8));