org.nuiton.wikitty
Class WikittyUtilTest

java.lang.Object
  extended by org.nuiton.wikitty.WikittyUtilTest

public class WikittyUtilTest
extends Object

Test on WikittyUtil class.

Version:
$Revision: 1462 $ Last update: $Date: 2012-04-05 17:31:15 +0200 (jeu, 05 avr 2012) $ by : $Author: maven-release $
Author:
poussin

Nested Class Summary
static class WikittyUtilTest.LabelDTO
           
 
Constructor Summary
WikittyUtilTest()
           
 
Method Summary
protected  String inc(String v)
           
 void testCast()
          Test of cast method, of class WikittyUtil.
 void testClone()
           
 void testCopyBean()
           
 void testCopyFrom()
           
 void testCrypt()
           
 void testDateConsistency()
          Check that a date is the same after parse and format.
 void testFormat()
           
 void testGetClass()
          Test of getClass method, of class WikittyUtil.
 void testGetWikitty()
           
 void testIncrementMajorRevision()
          Test of incrementMajorRevision method, of class WikittyUtil.
 void testIncrementMinorRevision()
          Test of incrementMinorRevision method, of class WikittyUtil.
 void testNormalizeVersion()
          Test of normalizeVersion method, of class WikittyUtil.
 void testParseDate()
           
 void testPerfIncrementMinorRevision()
          Test la difference de temps entre differente methode d'increment de version qui est sous forme texte.
 void testToBigDecimal()
          Test of toBigDecimal method, of class WikittyUtil.
 void testToBoolean()
          Test of toBoolean method, of class WikittyUtil.
 void testToDate()
           
 void testToDateNull()
          Test of toDate method, of class WikittyUtil.
 void testToList()
          Test of toList method, of class WikittyUtil.
 void testToString()
          Test of toString method, of class WikittyUtil.
 void testToWikitty()
          Test of toWikitty method, of class WikittyUtil.
 void testUID()
           
 void testVersionEquals()
          Test of versionEquals method, of class WikittyUtil.
 void testVersionGreaterThan()
          Test of versionGreaterThan method, of class WikittyUtil.
 void testWikittyExtensionBuild()
           
 void testWikittyExtensionTagValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikittyUtilTest

public WikittyUtilTest()
Method Detail

testToDate

public void testToDate()
                throws Exception
Throws:
Exception

testFormat

public void testFormat()

testNormalizeVersion

public void testNormalizeVersion()
Test of normalizeVersion method, of class WikittyUtil.


testVersionEquals

public void testVersionEquals()
Test of versionEquals method, of class WikittyUtil.


testVersionGreaterThan

public void testVersionGreaterThan()
Test of versionGreaterThan method, of class WikittyUtil.


testIncrementMinorRevision

public void testIncrementMinorRevision()
Test of incrementMinorRevision method, of class WikittyUtil.


testPerfIncrementMinorRevision

public void testPerfIncrementMinorRevision()
Test la difference de temps entre differente methode d'increment de version qui est sous forme texte.
  • parsing Integer + 1 (757ms / 3 millions d'appels)
  • switch sur les caracteres (419ms / 3 millions d'appels)
  • appel d'une methode d'increment (462ms / 3 millions d'appels)


  • inc

    protected String inc(String v)

    testIncrementMajorRevision

    public void testIncrementMajorRevision()
    Test of incrementMajorRevision method, of class WikittyUtil.


    testToBigDecimal

    public void testToBigDecimal()
    Test of toBigDecimal method, of class WikittyUtil.


    testToBoolean

    public void testToBoolean()
    Test of toBoolean method, of class WikittyUtil.


    testToString

    public void testToString()
    Test of toString method, of class WikittyUtil.


    testToDateNull

    public void testToDateNull()
    Test of toDate method, of class WikittyUtil.


    testToWikitty

    public void testToWikitty()
    Test of toWikitty method, of class WikittyUtil.


    testToList

    public void testToList()
    Test of toList method, of class WikittyUtil.


    testGetClass

    public void testGetClass()
    Test of getClass method, of class WikittyUtil.


    testCast

    public void testCast()
    Test of cast method, of class WikittyUtil.


    testUID

    public void testUID()
                 throws Exception
    Throws:
    Exception

    testWikittyExtensionBuild

    public void testWikittyExtensionBuild()

    testWikittyExtensionTagValue

    public void testWikittyExtensionTagValue()

    testDateConsistency

    public void testDateConsistency()
                             throws Exception
    Check that a date is the same after parse and format.

    Throws:
    Exception

    testParseDate

    public void testParseDate()
                       throws ParseException
    Throws:
    ParseException

    testGetWikitty

    public void testGetWikitty()

    testCopyBean

    public void testCopyBean()
                      throws Exception
    Throws:
    Exception

    testCopyFrom

    public void testCopyFrom()
                      throws Exception
    Throws:
    Exception

    testClone

    public void testClone()
                   throws Exception
    Throws:
    Exception

    testCrypt

    public void testCrypt()
                   throws Exception
    Throws:
    Exception


    Copyright © 2009-2012 CodeLutin. All Rights Reserved.