Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jformatter.text.test
Class PrintfTests  view PrintfTests download PrintfTests.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byjformatter.text.test.PrintfTests
All Implemented Interfaces:
junit.framework.Test

public class PrintfTests
extends junit.framework.TestCase


Field Summary
private  jformatter.text.Parameters m_params
           
private  jformatter.text.Printf m_printf
           
private  java.util.Vector m_vec
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
PrintfTests(java.lang.String name)
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
 void test_character_format()
           
 void test_class_print()
           
 void test_counter()
           
 void test_decimal_format_localisation()
           
 void test_decimal_format()
           
 void test_decimal_format2()
           
 void test_decimal_format3()
           
 void test_integer_formatting()
           
 void test_parameters()
           
 void test_plain_formatting()
          Idea: Format pattern doesn't contain any type information.
 void test_plain_percent_character()
           
 void test_string_formatting_int_params()
           
 void test_string_formatting_min_width()
           
 void test_string_formatting_pad_right_with_zeros_precision()
           
 void test_string_formatting_plain()
           
 void test_string_formatting_precision()
           
 void test_string_formatting_wrong_flag()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_printf

private jformatter.text.Printf m_printf

m_vec

private java.util.Vector m_vec

m_params

private jformatter.text.Parameters m_params
Constructor Detail

PrintfTests

public PrintfTests(java.lang.String name)
Method Detail

setUp

protected void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


suite

public static junit.framework.Test suite()

test_plain_formatting

public void test_plain_formatting()
                           throws java.lang.Exception
Idea: Format pattern doesn't contain any type information. So we'll get the same string back.


test_plain_percent_character

public void test_plain_percent_character()
                                  throws java.lang.Exception

test_string_formatting_plain

public void test_string_formatting_plain()
                                  throws java.lang.Exception

test_string_formatting_min_width

public void test_string_formatting_min_width()
                                      throws java.lang.Exception

test_string_formatting_precision

public void test_string_formatting_precision()
                                      throws java.lang.Exception

test_string_formatting_pad_right_with_zeros_precision

public void test_string_formatting_pad_right_with_zeros_precision()
                                                           throws java.lang.Exception

test_string_formatting_int_params

public void test_string_formatting_int_params()
                                       throws java.lang.Exception

test_string_formatting_wrong_flag

public void test_string_formatting_wrong_flag()
                                       throws java.lang.Exception

test_integer_formatting

public void test_integer_formatting()
                             throws java.lang.Exception

test_counter

public void test_counter()
                  throws java.lang.Exception

test_class_print

public void test_class_print()
                      throws java.lang.Exception

test_character_format

public void test_character_format()
                           throws java.lang.Exception

test_decimal_format

public void test_decimal_format()
                         throws java.lang.Exception

test_decimal_format2

public void test_decimal_format2()
                          throws java.lang.Exception

test_decimal_format3

public void test_decimal_format3()
                          throws java.lang.Exception

test_decimal_format_localisation

public void test_decimal_format_localisation()
                                      throws java.lang.Exception

test_parameters

public void test_parameters()
                     throws java.lang.Exception