org.eclipse.mylar.monitor.tests
Class MonitorTest

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

public class MonitorTest
extends junit.framework.TestCase
implements IMylarMonitorLifecycleListener

Author:
Mik Kersten

Field Summary
private  BrowserMonitor browserMonitor
           
private  KeybindingCommandMonitor commandMonitor
           
private  InteractionEventLogger logger
           
(package private)  boolean monitorRunning
           
private  PerspectiveChangeMonitor perspectiveMonitor
           
private  MockSelectionMonitor selectionMonitor
           
 
Constructor Summary
MonitorTest()
           
 
Method Summary
private  void generatePerspectiveSwitch()
           
private  void generateSelection()
           
protected  void setUp()
           
 void startMonitoring()
           
 void stopMonitoring()
           
protected  void tearDown()
           
 void testEnablement()
           
 void testLifecycleCallbacks()
           
 void testLogging()
           
 void testUrlFilter()
           
 
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

selectionMonitor

private MockSelectionMonitor selectionMonitor

commandMonitor

private KeybindingCommandMonitor commandMonitor

browserMonitor

private BrowserMonitor browserMonitor

perspectiveMonitor

private PerspectiveChangeMonitor perspectiveMonitor

monitorRunning

boolean monitorRunning
Constructor Detail

MonitorTest

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

testEnablement

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

testUrlFilter

public void testUrlFilter()

testLogging

public void testLogging()
                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

generateSelection

private void generateSelection()

generatePerspectiveSwitch

private void generatePerspectiveSwitch()

startMonitoring

public void startMonitoring()
Specified by:
startMonitoring in interface IMylarMonitorLifecycleListener

stopMonitoring

public void stopMonitoring()
Specified by:
stopMonitoring in interface IMylarMonitorLifecycleListener

testLifecycleCallbacks

public void testLifecycleCallbacks()