Examples of WjrStore


Examples of bufferings.ktr.wjr.shared.model.WjrStore

    assertThat(methodItems.get(0).getMethodName(), is("successMethod"));
  }

  @Test
  public void checkAndStoreTestClass_CanStoreTest_WithInnerStaticClass_JUnit3() {
    WjrStore store = new WjrStore();
    storeLoader.checkAndStoreTestClass(
      store,
      ForTestJUnit3.ForTestJUnit3InnerStatic.class);

    List<WjrClassItem> classItems = store.getClassItems();
    assertThat(classItems.size(), is(1));
    assertThat(
      classItems.get(0).getClassName(),
      is(ForTestJUnit3.ForTestJUnit3InnerStatic.class.getName()));

    List<WjrMethodItem> methodItems =
      store.getMethodItems(ForTestJUnit3.ForTestJUnit3InnerStatic.class
        .getName());
    assertThat(methodItems.size(), is(1));
    assertThat(methodItems.get(0).getMethodName(), is("testSuccessMethod"));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

  private WjrJUnit3StoreLoader storeLoader = new WjrJUnit3StoreLoader();

  @Test
  public void checkAndStoreTestClass_CanStoreTest_WithCommonClass_JUnit3() {

    WjrStore store = new WjrStore();
    storeLoader.checkAndStoreTestClass(store, ForTestJUnit3.class);

    List<WjrClassItem> classItems = store.getClassItems();
    assertThat(classItems.size(), is(1));
    assertThat(classItems.get(0).getClassName(), is(ForTestJUnit3.class
      .getName()));

    List<WjrMethodItem> methodItems =
      store.getMethodItems(ForTestJUnit3.class.getName());
    assertThat(methodItems.size(), is(4));
    assertThat(methodItems.get(0).getMethodName(), is("testErrorMethod"));
    assertThat(methodItems.get(1).getMethodName(), is("testFailureMethod"));
    assertThat(methodItems.get(2).getMethodName(), is("testOverQuotaExceptionMethod"));
    assertThat(methodItems.get(3).getMethodName(), is("testSuccessMethod"));
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

    assertThat(methodItems.get(3).getMethodName(), is("testSuccessMethod"));
  }

  @Test
  public void checkAndStoreTestClass_CanStoreTest_WithInheritClass_JUnit3() {
    WjrStore store = new WjrStore();
    storeLoader.checkAndStoreTestClass(store, ForTestJUnit3Inherit.class);

    List<WjrClassItem> classItems = store.getClassItems();
    assertThat(classItems.size(), is(1));
    assertThat(classItems.get(0).getClassName(), is(ForTestJUnit3Inherit.class
      .getName()));

    List<WjrMethodItem> methodItems =
      store.getMethodItems(ForTestJUnit3Inherit.class.getName());
    assertThat(methodItems.size(), is(4));
    assertThat(methodItems.get(0).getMethodName(), is("testErrorMethod"));
    assertThat(methodItems.get(1).getMethodName(), is("testFailureMethod"));
    assertThat(methodItems.get(2).getMethodName(), is("testOverQuotaExceptionMethod"));
    assertThat(methodItems.get(3).getMethodName(), is("testSuccessMethod"));
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

    assertThat(methodItems.get(3).getMethodName(), is("testSuccessMethod"));
  }

  @Test
  public void checkAndStoreTestClass_CanStoreTest_WithInnerStaticClass_JUnit3() {
    WjrStore store = new WjrStore();
    storeLoader.checkAndStoreTestClass(
      store,
      ForTestJUnit3.ForTestJUnit3InnerStatic.class);

    List<WjrClassItem> classItems = store.getClassItems();
    assertThat(classItems.size(), is(1));
    assertThat(
      classItems.get(0).getClassName(),
      is(ForTestJUnit3.ForTestJUnit3InnerStatic.class.getName()));

    List<WjrMethodItem> methodItems =
      store.getMethodItems(ForTestJUnit3.ForTestJUnit3InnerStatic.class
        .getName());
    assertThat(methodItems.size(), is(1));
    assertThat(methodItems.get(0).getMethodName(), is("testSuccessMethod"));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

public class KtrWjrServiceImplTest {

  @Test
  public void loadStore_WillCallStoreLoader() {
    final WjrStore store = new WjrStore();

    KtrWjrServiceImpl service = new KtrWjrServiceImpl() {
      @Override
      protected WjrStoreLoader getStoreLoader() {
        return new WjrStoreLoader() {
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

    }
  }

  @Test
  public void loadWjrStore_CanLoadWjrStore() {
    WjrStore store;
    if (AppEngineUtil.isServer()) {
      store = storeLoader.loadWjrStore("WEB-INF/classes");
    } else {
      store = storeLoader.loadWjrStore("war/WEB-INF/classes");
    }
    for (WjrClassItem item : store.getClassItems()) {
      if (item.getClassName().equals(ForTest.class.getName())) {
        return;
      }
    }
    fail();
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

    fail();
  }

  @Test
  public void findAndStoreTests_CanFindAndStoreTests() {
    WjrStore store = new WjrStore();
    if (AppEngineUtil.isServer()) {
      File parentDir = new File("WEB-INF/classes");
      storeLoader.findAndStoreTests(store, "WEB-INF/classes", parentDir);
    } else {
      File parentDir = new File("war/WEB-INF/classes");
      storeLoader.findAndStoreTests(store, "war/WEB-INF/classes", parentDir);
    }
    for (WjrClassItem item : store.getClassItems()) {
      if (item.getClassName().equals(ForTest.class.getName())) {
        return;
      }
    }
    fail();
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrStore

   */
  public void onLoadStore() {
    rpcService.loadStore(getParameterMap(), new AsyncCallback<WjrStore>() {

      public void onFailure(Throwable caught) {
        view.setData(new WjrStore());
        view.notifyLoadingStoreFailed(caught);
      }

      public void onSuccess(WjrStore result) {
        store = result;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.