Examples of JExercise


Examples of no.hal.jex.runtime.JExercise

    try {
      type = reflectionHelper.getReflectiveClass(junitTestSuite.getName());
    } catch (ClassNotFoundException e) {
      return null;
    }
    JExercise jexAnnotation = (JExercise) type.getAnnotation(JExercise.class);
    JavaRequirement req = ensureJavaRequirement(packageName, type.getSimpleName(), testedClassName, jexAnnotation.tests(), false);
    setAnnotationFeatures(req, jexAnnotation);
    for (int i = 0; i < junitTestSuite.testCount(); i++) {
      createFromTestClassAnnotations(junitTestSuite.testAt(i), req);
    }
    return req;
View Full Code Here

Examples of no.hal.jex.runtime.JExercise

    try {
      javaMethod = type.getMethod(testMethodName);
    } catch (Exception e) {
      return null;
    }
    JExercise jexAnnotation = (JExercise) javaMethod.getAnnotation(JExercise.class);
    String tests = jexAnnotation.tests();
    if (tests == null) {
      tests = testedMethodName;
    }
    JavaMethodTester javaMethodTester = (JavaMethodTester) ensureJavaElement(testMethodName, methodTesterParent.getMembers(), JexPackage.eINSTANCE.getJavaMethodTester());
    JUnitTest testReq = ensureJunitTest(javaMethodTester, tests, methodParent, reqParent);
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.