org.eclipse.mylar.monitor.tests
Class StatisticsReportingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.mylar.monitor.tests.StatisticsReportingTest
All Implemented Interfaces:
junit.framework.Test

public class StatisticsReportingTest
extends junit.framework.TestCase

Author:
Mik Kersten

Field Summary
private  MylarUsageAnalysisCollector editRatioCollector
           
private  InteractionEventLogger logger
           
private  ReportGenerator report
           
private  MylarViewUsageCollector viewCollector
           
 
Constructor Summary
StatisticsReportingTest()
           
 
Method Summary
protected  void mockEdit(java.lang.String handle)
           
protected  org.eclipse.mylar.context.core.InteractionEvent mockExplorerSelection(java.lang.String handle)
           
protected  void mockTypesSelection(java.lang.String handle)
           
private  void mockUserDelay()
          Delay enough to make replicated events different
protected  void setUp()
           
protected  void tearDown()
           
 void testEditRatio()
           
 void testFilteredModeDetection()
           
 void testSimpleSelection()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private InteractionEventLogger logger

viewCollector

private MylarViewUsageCollector viewCollector

editRatioCollector

private MylarUsageAnalysisCollector editRatioCollector

report

private ReportGenerator report
Constructor Detail

StatisticsReportingTest

public StatisticsReportingTest()
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

mockExplorerSelection

protected org.eclipse.mylar.context.core.InteractionEvent mockExplorerSelection(java.lang.String handle)

mockEdit

protected void mockEdit(java.lang.String handle)

mockTypesSelection

protected void mockTypesSelection(java.lang.String handle)

testEditRatio

public void testEditRatio()
                   throws java.lang.reflect.InvocationTargetException,
                          java.lang.InterruptedException
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException

testSimpleSelection

public void testSimpleSelection()

testFilteredModeDetection

public void testFilteredModeDetection()
                               throws java.io.IOException
Throws:
java.io.IOException

mockUserDelay

private void mockUserDelay()
Delay enough to make replicated events different