package io.wcm.qa.galenium.verification;
import org.slf4j.Logger;

import io.wcm.qa.galenium.reporting.GaleniumReportUtil;
import io.wcm.qa.galenium.util.GaleniumContext;
import io.wcm.qa.galenium.verification.Verification;
import io.wcm.qa.galenium.verification.VerificationStrategyBase;


/*
 * #%L
 * wcm.io
 * %%
 * Copyright (C) 2017 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%
 */

public class DefaultVerificationStrategy extends VerificationStrategyBase {

  protected Logger getLogger() {
    return GaleniumReportUtil.getLogger();
  }

  @Override
  protected void handleFailure(Verification verification) {
    if (verification.getException() != null) {
      GaleniumContext.getAssertion().fail(verification.getMessage(), verification.getException());
    }
    else {
      GaleniumContext.getAssertion().fail(verification.getMessage());
    }
  }

  @Override
  protected void handleSuccess(Verification verification) {
    getLogger().info(verification.getMessage());
  }

}

@@ -30,24 +30,101 @@
 rification;%0A
+%0Aimport static io.wcm.qa.galenium.reporting.GaleniumReportUtil.MARKER_PASS;%0A%0A
 import org.s
@@ -245,126 +245,8 @@
 xt;%0A
-import io.wcm.qa.galenium.verification.Verification;%0Aimport io.wcm.qa.galenium.verification.VerificationStrategyBase;%0A
 %0A%0A/*
@@ -1439,16 +1439,29 @@
 ().info(
+MARKER_PASS, 
 verifica

mark successful verifications in report