FileDocCategorySizeDatePackage
StringFormatTest.javaAPI DocExample794Tue Sep 09 21:34:10 BST 2003regress

StringFormatTest

public class StringFormatTest extends TestCase

Fields Summary
String
mesg
Constructors Summary
Methods Summary
public voidtestCentre()

		assertEquals("JavaF",
			new StringFormat(5, StringFormat.JUST_CENTER).format(mesg));
		assertEquals(" JavaFun  ",
			new StringFormat(10, StringFormat.JUST_CENTER).format(mesg));
	
public voidtestLeft()


	   
		assertEquals("JavaF",
			new StringFormat(5, StringFormat.JUST_LEFT).format(mesg));
		assertEquals("JavaFun   ",
			new StringFormat(10, StringFormat.JUST_LEFT).format(mesg));
	
public voidtestRight()

		assertEquals("JavaF",
			new StringFormat(5, StringFormat.JUST_RIGHT).format(mesg));
		assertEquals("   JavaFun",
			new StringFormat(10, StringFormat.JUST_RIGHT).format(mesg));