package com.autonomy.abc.base;

import com.autonomy.abc.config.SOConfigLocator;
import com.autonomy.abc.selenium.find.HsodFind;
import com.autonomy.abc.selenium.find.HsodFindElementFactory;
import com.hp.autonomy.frontend.selenium.base.TestParameterFactory;
import com.hp.autonomy.frontend.selenium.config.TestConfig;
import com.hp.autonomy.frontend.selenium.users.User;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import java.io.IOException;

@RunWith(Parameterized.class)
public abstract class FindTestBase extends HybridAppTestBase<HsodFind, HsodFindElementFactory> {
    protected FindTestBase(TestConfig config) {
        super(config, new HsodFind());
    }

    @Parameterized.Parameters
    public static Iterable<Object[]> parameters() throws IOException {
        return new TestParameterFactory().create(new SOConfigLocator().getJsonConfig());
    }

    protected final User getCurrentUser() {
        return getApplication().loginService().getCurrentUser();
    }

}

@@ -29,56 +29,8 @@
 e;%0A%0A
-import com.autonomy.abc.config.SOConfigLocator;%0A
 impo
@@ -180,33 +180,35 @@
 ium.
-base.TestParameterFactory
+application.ApplicationType
 ;%0Aim
@@ -419,16 +419,46 @@
 ception;
+%0Aimport java.util.Collections;
 %0A%0A@RunWi
@@ -792,78 +792,63 @@
 urn 
-new TestParameterFactory().create(new SOConfigLocator().getJsonConfig(
+parameters(Collections.singleton(ApplicationType.HOSTED
 ));%0A

Set FindTestBase to only run on hosted