org.eclipse.mylar.monitor.tests
Class MultiWindowMonitorTest

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

public class MultiWindowMonitorTest
extends junit.framework.TestCase

Author:
Brian de Alwis, Mik Kersten

Field Summary
private  InteractionEventLogger logger
           
private  boolean monitoringWasEnabled
           
private  MockSelectionMonitor selectionMonitor
           
private  org.eclipse.ui.IWorkbenchWindow window1
           
private  org.eclipse.ui.IWorkbenchWindow window2
           
 
Constructor Summary
MultiWindowMonitorTest()
           
 
Method Summary
protected  org.eclipse.ui.IWorkbenchWindow duplicateWindow(org.eclipse.ui.IWorkbenchWindow window)
           
protected  void generateSelection(org.eclipse.ui.IWorkbenchWindow w)
           
protected  java.lang.Object invokeMethod(java.lang.Object instance, java.lang.String methodName, java.lang.Class<?>[] argTypes, java.lang.Object[] arguments)
           
protected  org.eclipse.ui.IWorkbenchWindow restoreWorkbenchWindow(org.eclipse.ui.internal.Workbench workbench, org.eclipse.ui.IMemento memento)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testMultipleWindows()
           
 
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

window1

private org.eclipse.ui.IWorkbenchWindow window1

window2

private org.eclipse.ui.IWorkbenchWindow window2

monitoringWasEnabled

private boolean monitoringWasEnabled
Constructor Detail

MultiWindowMonitorTest

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

generateSelection

protected void generateSelection(org.eclipse.ui.IWorkbenchWindow w)

testMultipleWindows

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

duplicateWindow

protected org.eclipse.ui.IWorkbenchWindow duplicateWindow(org.eclipse.ui.IWorkbenchWindow window)

restoreWorkbenchWindow

protected org.eclipse.ui.IWorkbenchWindow restoreWorkbenchWindow(org.eclipse.ui.internal.Workbench workbench,
                                                                 org.eclipse.ui.IMemento memento)

invokeMethod

protected java.lang.Object invokeMethod(java.lang.Object instance,
                                        java.lang.String methodName,
                                        java.lang.Class<?>[] argTypes,
                                        java.lang.Object[] arguments)