//@include sol.dev.TestUtils.js
//@include sol.common.ix.services.BLPQueries.js

/**
 * Please consider to move the following variables to your eslint config
 */
/* jasmine variables */
/* global jasmine, describe, beforeAll, beforeEach, afterEach, afterAll, it, expect */
/* test variables */
/* global ConnectionHandler, TestUtils */
/* business solution variables */
/* global sol */

describe("sol.common.ix.services.BLPQueries.js", function () {
  var originalTimeout,
      mask,
      entries;

  beforeAll(function () {
    originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 100000;
  });

  // beforeEach(function () {
  // });

  describe("Testing the DynKWL BLP iterator", function () {

    beforeEach(function () {
    });

    it("should get all entries", function () {
      var result, service, config;

      expect(function () {
        config = {
          serverUrl: "http://10.49.110.26:30009",
          appToken: "10-72-247-145-178-111-140-199-76-206-244-58-141-163-129-118-170-172-224-90-221-165-31-105-158-70-164-83-86-47-79-52-20-163-57-105-67-244-252-215-110-99-236-18-224-8-19-250",
          projectId: "603c98f95675da5172eb84cb"
        };
        service = sol.create("sol.common.ix.services.BLPQueries", config);
        result = service.process();

        expect(result.length).toBeGreaterThan(0);
      }).not.toThrow();
    });

    afterEach(function () {
    });
  });

  afterAll(function () {
    jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
  });
});