/*
 * #%L
 * wcm.io
 * %%
 * Copyright (C) 2020 wcm.io
 * %%
 * 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.
 * #L%
 */
package io.wcm.qa.glnm.example.generic;

import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.chrome.ChromeOptions;

import io.github.bonigarcia.seljup.Options;
import io.wcm.qa.glnm.hamcrest.GaleniumAssert;
import io.wcm.qa.glnm.hamcrest.LogEntryMatchers;
import io.wcm.qa.glnm.interaction.Browser;
import io.wcm.qa.glnm.interaction.Wait;
import io.wcm.qa.glnm.junit.CheckResponseCodes;
import io.wcm.qa.glnm.junit.ChromePerformanceLog;

public class ResponseStatusIT implements CheckResponseCodes {

  /**
   * Chrome options with performance logging will be used when initializing chrome driver.
   */
  @Options
  ChromeOptions chromeOptions = ChromePerformanceLog.chromeOptionsWithPerformanceLog().setHeadless(true);


  @Test
  void checkResponses() {
    Browser.load("https://pro-vision.de");
    Wait.forDomReady(5);
    GaleniumAssert.assertResponses(Matchers.everyItem(LogEntryMatchers.hasStatus(200)));
  }
}

@@ -666,73 +666,8 @@
 c;%0A%0A
-import org.hamcrest.Matchers;%0Aimport org.junit.jupiter.api.Test;%0A
 impo
@@ -760,187 +760,8 @@
 ns;%0A
-import io.wcm.qa.glnm.hamcrest.GaleniumAssert;%0Aimport io.wcm.qa.glnm.hamcrest.LogEntryMatchers;%0Aimport io.wcm.qa.glnm.interaction.Browser;%0Aimport io.wcm.qa.glnm.interaction.Wait;%0A
 impo
@@ -838,30 +838,27 @@
 t.Chrome
-PerformanceLog
+OptionsUtil
 ;%0A%0Apubli
@@ -1071,37 +1071,21 @@
 rome
-PerformanceLog.chrome
 Options
-W
+Util.w
 ithP
@@ -1103,223 +1103,9 @@
 og()
-.setHeadless(true);%0A%0A%0A  @Test%0A  void checkResponses() %7B%0A    Browser.load(%22https://pro-vision.de%22);%0A    Wait.forDomReady(5);%0A    GaleniumAssert.assertResponses(Matchers.everyItem(LogEntryMatchers.hasStatus(200)));%0A  %7D
+;%0A
 %0A%7D%0A

remove explicit test method