Package org.bladerunnerjs.testing.utility

Examples of org.bladerunnerjs.testing.utility.LogMessageStore


  private BRJS brjs;
 
  @Before
  public void setup() throws Exception
  {
    brjs = createModel(testBase, new TestLoggerFactory(new LogMessageStore()));
    nodeTesterFactory = new NodeTesterFactory<>(brjs, BRJS.class);
  }
View Full Code Here


  private LogMessageStore logStore;

  @Before
  public void setup() throws Exception
  {
    logStore = new LogMessageStore(true);
    brjs = createModel(new File("src/test/resources/BRJSTest"), new TestLoggerFactory(logStore));
  }
View Full Code Here

    tempDir = FileUtility.createTemporaryDirectory( this.getClass() );
    watchFile = new File(tempDir, "watch-file");
    sdkDir = new File(tempDir, "sdk");
   
    sdkDir.mkdir();
    brjs = createModel(sdkDir, new MockPluginLocator(), new OptimisticFileModificationService(), new TestLoggerFactory(new LogMessageStore()), new MockAppVersionGenerator());
    watchFileInfo = brjs.getFileInfo(watchFile);
  }
View Full Code Here

  }
 
  @Test
  public void exceptionsFromANodeObserverDoNotGetPropagatedAndAnErrorIsLogged() throws Exception
  {
    LogMessageStore logStore = new LogMessageStore(true);
    TestRootNode rootNode = new TestRootNode( new File(TEST_DIR, "brjs-root-node"), new TestLoggerFactory(logStore) );
   
    EventObserver observer = mock(EventObserver.class);
    RuntimeException ex = new RuntimeException();
    doThrow(ex).when(observer).onEventEmitted(any(Event.class), eq(rootNode));
   
    rootNode.addObserver(observer);
    rootNode.ready();
   
    logStore.verifyWarnLogMessage(ObserverList.Messages.NODE_OBSERVER_EXCEPTION_MSG, observer.getClass(), ExceptionUtils.getStackTrace(ex));
  }
View Full Code Here

  public void resetTestObjects()
  {
    BRJS.allowInvalidRootDirectories = false;
   
    appServerPort = ServerUtility.getTestPort();
    logging = new LogMessageStore();
    exceptions = new ArrayList<>();
    observer = mock(EventObserver.class);
    testSdkDirectory = createTestSdkDirectory();
    pluginLocator = new MockPluginLocator();
    webappTester = new WebappTester(testSdkDirectory);
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.testing.utility.LogMessageStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.