Examples of JexTestCase


Examples of no.hal.jex.jextest.jexTest.JexTestCase

  public boolean generateTestMethodAnntations(final JexTestSequence sequence, final JvmAnnotationReference jexerciseAnnotation) {
    boolean _xblockexpression = false;
    {
      StringBuilder _stringBuilder = new StringBuilder();
      final StringBuilder testsBuffer = _stringBuilder;
      final JexTestCase testCase = this._util.<JexTestCase>ancestor(sequence, JexTestCase.class);
      JvmParameterizedTypeReference _testedClass = testCase.getTestedClass();
      final JvmType testedClass = _testedClass.getType();
      final ArrayList<JvmExecutable> testedMembers = CollectionLiterals.<JvmExecutable>newArrayList();
      EList<Instance> _instances = testCase.getInstances();
      boolean _isEmpty = _instances.isEmpty();
      if (_isEmpty) {
        this.addDefaultConstructor(testedClass, testedMembers);
      } else {
        EList<Instance> _instances_1 = testCase.getInstances();
        for (final Instance instance : _instances_1) {
          this.collectUsedMembers(instance, testedClass, testedMembers);
        }
      }
      EList<Instance> _instances_2 = sequence.getInstances();
View Full Code Here

Examples of no.hal.jex.jextest.jexTest.JexTestCase

    }
    return _xblockexpression;
  }
 
  public boolean isDefaultInstanceTest(final EObject eObject) {
    JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
    EList<Instance> _instances = _ancestor.getInstances();
    boolean _isEmpty = _instances.isEmpty();
    return _isEmpty;
  }
View Full Code Here

Examples of no.hal.jex.jextest.jexTest.JexTestCase

  }
 
  public JvmParameterizedTypeReference defaultInstanceType(final EObject eObject) {
    JvmParameterizedTypeReference _xblockexpression = null;
    {
      final JexTestCase testCase = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
      JvmParameterizedTypeReference _testedClass = null;
      if (testCase!=null) {
        _testedClass=testCase.getTestedClass();
      }
      _xblockexpression = (_testedClass);
    }
    return _xblockexpression;
  }
View Full Code Here

Examples of no.hal.jex.jextest.jexTest.JexTestCase

    }
    return _xblockexpression;
  }
 
  public String defaultInstanceName(final EObject eObject) {
    JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
    JvmParameterizedTypeReference _testedClass = _ancestor.getTestedClass();
    String _simpleName = _testedClass.getSimpleName();
    String _firstLower = StringExtensions.toFirstLower(_simpleName);
    return _firstLower;
  }
View Full Code Here

Examples of no.hal.jex.jextest.jexTest.JexTestCase

          if (_notEquals) {
            return instance.getName();
          }
        }
      }
      JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
      final EList<Instance> instances = _ancestor.getInstances();
      String _xifexpression = null;
      boolean _isEmpty = instances.isEmpty();
      if (_isEmpty) {
        String _defaultInstanceName = this.defaultInstanceName(eObject);
        _xifexpression = _defaultInstanceName;
View Full Code Here

Examples of no.hal.jex.jextest.jexTest.JexTestCase

          if (_notEquals) {
            return this.jvmType(instance);
          }
        }
      }
      JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
      final EList<Instance> instances = _ancestor.getInstances();
      JvmTypeReference _xifexpression = null;
      boolean _isEmpty = instances.isEmpty();
      if (_isEmpty) {
        JvmParameterizedTypeReference _defaultInstanceType_1 = this.defaultInstanceType(eObject);
        _xifexpression = _defaultInstanceType_1;
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.