Skip to content

Commit

Permalink
Added yet one test for easy local testing
Browse files Browse the repository at this point in the history
- no need to change other tests when I need just a small part of the block.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 23, 2022
1 parent 8460306 commit 658294d
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright (c) 2022 Eclipse Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

package org.glassfish.main.tests.tck.ant.tests;

import jakarta.inject.Inject;

import java.nio.file.Paths;

import org.glassfish.main.tests.tck.ant.TckRunner;
import org.glassfish.main.tests.tck.ant.junit.TckTestExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

/**
* @author David Matejcek
*/
@ExtendWith(TckTestExtension.class)
public class CustomITest {

@Inject
private TckRunner tck;

@Test
public void run() throws Exception {
String path = System.getProperty("tck.module");
if (path == null) {
return;
}
tck.startMailServer();
tck.start(Paths.get("").resolve(path));
}
}

0 comments on commit 658294d

Please sign in to comment.