All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.share.srctree.test-method.js Maven / Gradle / Ivy

There is a newer version: 0.10.1
Show newest version
/**
 * @class
 */
sahagin.TestMethod = function() {
  sahagin.base(this);

  /**
   * @private
   * @type {string}
   */
  this.testClassKey = null;

  /**
   * @private
   * @type {sahagin.TestClass}
   */
  this.testClass = null;
};
sahagin.inherits(sahagin.TestMethod, sahagin.TestFunction);

/**
 * @type {string}
 */
sahagin.TestMethod.TYPE = 'method';

/**
 * @returns {string}
 */
sahagin.TestMethod.prototype.getTestClassKey = function() {
  return this.testClassKey;
};

/**
 * @param {string} testClassKey
 */
sahagin.TestMethod.prototype.setTestClassKey = function(testClassKey) {
  this.testClassKey = testClassKey;
};

/**
 * @returns {sahagin.TestClass}
 */
sahagin.TestMethod.prototype.getTestClass = function() {
  return this.testClass;
};

/**
 * @param {sahagin.TestClass} testClass
 */
sahagin.TestMethod.prototype.setTestClass = function(testClass) {
  this.testClass = testClass;
};

/**
 * @returns {string}
 */
sahagin.TestMethod.prototype.getType = function() {
  return sahagin.TestMethod.TYPE;
};

/**
 * @returns {Object.}
 */
sahagin.TestMethod.prototype.toYamlObject = function() {
  var result = sahagin.base(this, 'toYamlObject');
  result['classKey'] = this.testClassKey;
  return result;
};

/**
 * @param {Object.} yamlObject
 */
sahagin.TestMethod.prototype.fromYamlObject = function(yamlObject) {
  sahagin.base(this, 'fromYamlObject', yamlObject);
  this.testClass = null;
  this.testClassKey = sahagin.YamlUtils.getStrValue(yamlObject, 'classKey');
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy