Skip to content

Commit

Permalink
it: make extension instances static
Browse files Browse the repository at this point in the history
  • Loading branch information
ibodrov committed Nov 14, 2024
1 parent 3cc024b commit b1b4ce1
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class CryptoIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'crypto' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
public class FormIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* A straightforward single form process.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class ImportsIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure()
public static final ConcordRule concord = ConcordConfiguration.configure()
.extraConfigurationSupplier(() -> "concord-server { imports { disabledProcessors = [] } }\n" +
"concord-agent { imports { disabledProcessors = [] } }");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class JsonStoreIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'jsonStore' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class KvTaskIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'kv' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class NodeRosterIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'noderoster' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
public class SmtpIT extends AbstractTest {

@RegisterExtension
GreenMailExtension mailServer = new GreenMailExtension(new ServerSetup(0, "0.0.0.0", ServerSetup.PROTOCOL_SMTP));
public static final GreenMailExtension mailServer = new GreenMailExtension(new ServerSetup(0, "0.0.0.0", ServerSetup.PROTOCOL_SMTP))
.withPerMethodLifecycle(false);

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure()
public static final ConcordRule concord = ConcordConfiguration.configure()
.containerListener(new ContainerListener() {
@Override
public void beforeStart(ContainerType type) {
Expand Down

0 comments on commit b1b4ce1

Please sign in to comment.