Ejemplo n.º 1
0
    private TestCaseInterface getTestCaseInterface() {
      AbstractNodeInterface nodeInterface =
          NodeInterfaceFactory.getNodeInterface(getSelectedNodes().get(0), null, fFileInfoProvider);

      if (!(nodeInterface instanceof TestCaseInterface)) {
        final String MSG = "Invalid type of node interface. Test case interface expected";
        ExceptionHelper.reportRuntimeException(MSG);
      }

      return (TestCaseInterface) nodeInterface;
    }
Ejemplo n.º 2
0
    private MethodInterface getMethodInterface() {
      AbstractNodeInterface nodeIf =
          NodeInterfaceFactory.getNodeInterface(getSelectedNodes().get(0), null, fFileInfoProvider);

      if (!(nodeIf instanceof MethodInterface)) {
        final String MSG = "Invalid type of node interface. Method node interface expected";
        ExceptionHelper.reportRuntimeException(MSG);
      }

      return (MethodInterface) nodeIf;
    }