org.alfresco.repo.dictionary.types.period
Class PeriodTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.dictionary.types.period.PeriodTest
All Implemented Interfaces:
junit.framework.Test

public class PeriodTest
extends junit.framework.TestCase

Tests for period implementations - persistence and search is tested elsewhere


Constructor Summary
PeriodTest()
           
 
Method Summary
protected  void setUp()
           
 void testCron()
          Cron
 void testDays()
          Days
 void testEndOfDefaultFinancialMonth()
          End of F Month For 1 Oct this is the same as month
 void testEndOfDefaultFinancialQuarter()
          End of FQ
 void testEndOfDefaultFinancialYear()
          EndOfFinacialYear
 void testEndOfMonth()
          EndOfMonth
 void testEndOfQuarter()
          End of Quarter
 void testEndOfUKTaxMonth()
          End of FQ
 void testEndOfUKTaxQuarter()
          End of FQ
 void testEndOfUKTaxYear()
          EndOfFinacialYear
 void testEndOfYear()
          EndOfYear
 void testMissingExpression()
          Test a missing expression, ensure 1 is used as the default
 void testMonths()
          Months
 void testNoPeriod()
          "none"
 void testQuarters()
          Quarters
 void testWeeks()
          Weeks
 void testXMLDuration()
          XMLDuration
 void testYears()
          Years
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeriodTest

public PeriodTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testNoPeriod

public void testNoPeriod()
"none"


testDays

public void testDays()
Days


testWeeks

public void testWeeks()
Weeks


testMonths

public void testMonths()
Months


testQuarters

public void testQuarters()
Quarters


testYears

public void testYears()
Years


testEndOfMonth

public void testEndOfMonth()
EndOfMonth


testEndOfYear

public void testEndOfYear()
EndOfYear


testEndOfQuarter

public void testEndOfQuarter()
                      throws java.text.ParseException
End of Quarter

Throws:
java.text.ParseException

testEndOfDefaultFinancialMonth

public void testEndOfDefaultFinancialMonth()
End of F Month For 1 Oct this is the same as month


testEndOfDefaultFinancialYear

public void testEndOfDefaultFinancialYear()
                                   throws java.text.ParseException
EndOfFinacialYear

Throws:
java.text.ParseException

testEndOfDefaultFinancialQuarter

public void testEndOfDefaultFinancialQuarter()
                                      throws java.text.ParseException
End of FQ

Throws:
java.text.ParseException

testEndOfUKTaxYear

public void testEndOfUKTaxYear()
                        throws java.text.ParseException
EndOfFinacialYear

Throws:
java.text.ParseException

testEndOfUKTaxQuarter

public void testEndOfUKTaxQuarter()
                           throws java.text.ParseException
End of FQ

Throws:
java.text.ParseException

testEndOfUKTaxMonth

public void testEndOfUKTaxMonth()
                         throws java.text.ParseException
End of FQ

Throws:
java.text.ParseException

testCron

public void testCron()
              throws java.text.ParseException
Cron

Throws:
java.text.ParseException

testXMLDuration

public void testXMLDuration()
                     throws java.text.ParseException
XMLDuration

Throws:
java.text.ParseException

testMissingExpression

public void testMissingExpression()
Test a missing expression, ensure 1 is used as the default



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.