org.alfresco.repo.usage
Class RepoUsageComponentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.usage.RepoUsageComponentTest
All Implemented Interfaces:
junit.framework.Test

public class RepoUsageComponentTest
extends junit.framework.TestCase

Tests RepoUsageComponent

Since:
3.5

Constructor Summary
RepoUsageComponentTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testConcurrentUpdates()
          Check that concurrent updates are prevented
 void testFullUse()
           
 void testGetUsage()
           
 void testLicenseUse()
          Tests license code interaction.
 void testNoTxn()
           
 void testSetup()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

RepoUsageComponentTest

public RepoUsageComponentTest()
Method Detail

setUp

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

tearDown

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

testSetup

public void testSetup()

testNoTxn

public void testNoTxn()
               throws java.lang.Throwable
Throws:
java.lang.Throwable

testGetUsage

public void testGetUsage()

testFullUse

public void testFullUse()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testLicenseUse

public void testLicenseUse()
                    throws java.lang.Exception
Tests license code interaction. This interaction would be done using runAs 'System'.

Throws:
java.lang.Exception

testConcurrentUpdates

public void testConcurrentUpdates()
                           throws java.lang.Exception
Check that concurrent updates are prevented

Throws:
java.lang.Exception


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