/*
 * Copyright (c) 2012-2017 Red Hat, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */
package org.eclipse.che.selenium.swagger;

import com.google.inject.Inject;
import org.eclipse.che.selenium.core.SeleniumWebDriver;
import org.eclipse.che.selenium.core.provider.TestIdeUrlProvider;
import org.eclipse.che.selenium.core.workspace.TestWorkspace;
import org.eclipse.che.selenium.pageobject.Ide;
import org.eclipse.che.selenium.pageobject.Loader;
import org.eclipse.che.selenium.pageobject.Swagger;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import static org.testng.Assert.assertTrue;

/** @author Andrey Chizhikov */
public class SwaggerTest {

  @Inject private TestIdeUrlProvider ideUrlProvider;
  @Inject private Ide ide;
  @Inject private TestWorkspace workspace;
  @Inject private Loader loader;
  @Inject private Swagger swagger;
  @Inject private SeleniumWebDriver driver;

  private String swaggerUrl;

  @BeforeClass
  public void setUp() throws Exception {
    swaggerUrl = ideUrlProvider.get() + "swagger/";
    ide.open(workspace);
  }

  @Test
  public void checkNameProjectTest() throws Exception {
    driver.navigate().to(swaggerUrl);
    assertTrue(swagger.getWsNamesFromWorkspacePage().contains(workspace.getName()));
  }
}

@@ -402,16 +402,61 @@
 agger;%0A%0A
+import static org.testng.Assert.assertTrue;%0A%0A
 import c
@@ -819,34 +819,8 @@
 er;%0A
-import org.testng.Assert;%0A
 impo
@@ -899,53 +899,8 @@
 t;%0A%0A
-import static org.testng.Assert.assertTrue;%0A%0A
 /** 

apply formatter, fix build (#6563)