text: /*
  Copyright IBM Corporation 2017
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  */
  /**
   * Unit tests for the LayoutsREST object.
   */
  "use strict";
  
  // Require the super classes for this class.
  const UnitTest = require("./base.unit.js");
  const LayoutsUnitTest = require("./layouts.unit.js");
  const BaseRestUnit = require("./base.rest.unit.js");
  
  // Require the local module being tested.
  const restApi = require(UnitTest.API_PATH + "lib/layoutsREST.js").instance;
  const options = require(UnitTest.API_PATH + "lib/utils/options.js");
  // Get the "lookup" URI for layouts.
  const lookupUri =  options.getProperty(UnitTest.DEFAULT_API_CONTEXT, "layouts", "uri");
  const path1 = LayoutsUnitTest.VALID_LAYOUTS_DIRECTORY + LayoutsUnitTest.VALID_LAYOUT_1;
  const path2 = LayoutsUnitTest.VALID_LAYOUTS_DIRECTORY + LayoutsUnitTest.VALID_LAYOUT_2;
  
  class LayoutsRestUnitTest extends BaseRestUnit {
      constructor() {
          super();
      }
      run(){
          super.run(restApi, lookupUri, "layouts", path1, path2);
      }
  }
  
  module.exports = LayoutsRestUnitTest;
  