Package no.hal.jex

Examples of no.hal.jex.JavaMethodTester


    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);
    setAnnotationFeatures(testReq, jexAnnotation);
    return testReq;
  }
View Full Code Here


    IMemberValuePair[] annotations = JdtHelper.getAnnotationValuePairs(method, AbstractTestAnnotationsToModelConverter.JEX_ANNOTATION_NAME);
    String tests = (String) JdtHelper.getAnnotationValue(annotations, JEX_TESTS_ANNOTATION_KEY, IMemberValuePair.K_STRING);
    if (tests == null) {
      tests = testedMethodName;
    }
    JavaMethodTester javaMethodTester = (JavaMethodTester) ensureJavaElement(method.getElementName(), methodTesterParent.getMembers(), JexPackage.eINSTANCE.getJavaMethodTester());
    JUnitTest testReq = ensureJunitTest(javaMethodTester, tests, methodParent, reqParent);
    setAnnotationFeatures(testReq, annotations, parentAnnotations);
    return testReq;
  }
View Full Code Here

TOP

Related Classes of no.hal.jex.JavaMethodTester

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.