/* * Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ package com.oracle.appbundlers.tests.functionality; import static com.oracle.appbundlers.utils.installers.AbstractBundlerUtils.OUTPUT_CONTAINS; import java.io.IOException; import java.util.HashMap; import java.util.Map; import com.oracle.appbundlers.tests.functionality.functionalinterface.AdditionalParams; import com.oracle.appbundlers.tests.functionality.functionalinterface.VerifiedOptions; import com.oracle.appbundlers.utils.AppWrapper; import com.oracle.appbundlers.utils.ExtensionType; import com.oracle.appbundlers.utils.SourceFactory; import com.oracle.appbundlers.utils.Utils; /** * @author Dmitry Ginzburg <dmitry.x.ginzburg@oracle.com> * @author Dmitry Zinkevich <dmitry.zinkevich@oracle.com> */ /** *
* Tests the behavior when the {@code mainClass} is specified *
** This class should not be equal to the default one (the main class of the main * jar) *
*/ public class MainClassTest extends TestBase { protected String mainClassName() { return APP2_NAME; } protected String fullName() { return COM_GREETINGS_APP2_QUALIFIED_CLASS_NAME; } @Override public String getResultingAppName() { return mainClassName(); } public AdditionalParams getAdditionalParams() { return () -> { Map