Skip to content

Commit

Permalink
chore: remove superfluous newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt committed Oct 9, 2024
1 parent 433ecf2 commit 680b264
Show file tree
Hide file tree
Showing 166 changed files with 0 additions and 204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ public ContainerCreate portBindings(PortBinding ... portBindings) {
return this;
}


/**
* Adds volumes variables as command parameter.
* @param volumes
Expand Down Expand Up @@ -602,7 +601,6 @@ public Builder portBindings(PortBinding ... portBindings) {
return this;
}


/**
* Adds volumes variables as command parameter.
* @param volumes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public interface KnativeAction extends TestAction {
*/
KnativeClient getKnativeClient();


/**
* Gets the current namespace.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void doExecute(TestContext context) {
Resource file = FileUtils.getFileResource(filePath, context);
String resolvedFileContent = context.replaceDynamicContentInString(FileUtils.readToString(file, StandardCharsets.UTF_8));


data.put(FileUtils.getFileName(file.getLocation()),
Base64.getEncoder().encodeToString(resolvedFileContent.getBytes(StandardCharsets.UTF_8)));
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void doExecute(TestContext context) {
Resource file = FileUtils.getFileResource(filePath, context);
String resolvedFileContent = context.replaceDynamicContentInString(FileUtils.readToString(file, StandardCharsets.UTF_8));


data.put(FileUtils.getFileName(file.getLocation()),
Base64.getEncoder().encodeToString(resolvedFileContent.getBytes(StandardCharsets.UTF_8)));
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.NotNull;


/**
* @since 2.7
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import io.fabric8.kubernetes.api.model.HasMetadata;
import jakarta.validation.constraints.NotNull;


/**
* @since 2.7
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ public void testBadConfiguredKubernetesClient() {
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

public class ServiceClusterIpFunctionTest extends UnitTestSupport {


@Mock
private KubernetesClient k8sClient;
@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class OpenApiClientRequestMessageBuilderTest {
private final OpenApiSpecification petstoreSpec = OpenApiSpecification.from(
Resources.create("classpath:org/citrusframework/openapi/petstore/petstore-derivation-for-message-builder-test.json"));


@Test
public void shouldAddRandomDataForOperation() {
Message message = openapi()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/
public class SeleniumHeaders {


/**
* Prevent instantiation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,4 @@ public void testExecuteMultiSelect() throws Exception {
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;


public class ExecutePLSQLActionTest extends AbstractTestNGUnitTest {

private ExecutePLSQLAction.Builder executePLSQLActionBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify;


public class ExecuteSQLActionTest extends AbstractTestNGUnitTest {

private static final String DB_STMT_1 = "DELETE * FROM ERRORS WHERE STATUS='resolved'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ public void setDisabled(boolean disabled) {
this.disabled = disabled;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ static <T extends MessageProcessor, B extends Builder<T, B>> Optional<Builder<T,
return Optional.empty();
}


/**
* Process message with given test context. Processors can change the message payload and headers.
* @param message the message to process.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package org.citrusframework.report;


/**
* Interface for test reporters.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package org.citrusframework.server;


import org.citrusframework.endpoint.Endpoint;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ private static void readFromJarStream(ClassLoader classLoader, String path, Stri
}
}


private void loadResourcesInDirectory(String path, File location, Set<Path> result,
Predicate<String> filter) {
File[] files = location.listFiles();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package org.citrusframework.validation.context;


/**
* Basic validation context holding validation specific information.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ public void urlResourceExistsOnConnectionTest() throws IOException {
assertTrue(new UrlResource(withContentUrlMock).exists());
}


@Test
public void urlResourceNotExistsOnConnectionFailureTest() throws IOException {
URL withContentUrlMock = spy(new URL(Resources.HTTP_RESOURCE_PREFIX + "//host/context"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public S whenSystemProperties(Map<String, String> systemProperties) {
return self;
}


/**
* Condition on environment variable with value. The before test logic will only run when this condition matches.
* @param name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public S whenSystemProperties(Map<String, String> systemProperties) {
return self;
}


/**
* Condition on environment variable with value. The before test logic will only run when this condition matches.
* @param name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public void addTestListener(TestListener testListener) {
this.testListeners.addTestListener(testListener);
}


@Override
public void addTestActionListener(TestActionListener testActionListener) {
this.testActionListeners.addTestActionListener(testActionListener);
Expand Down Expand Up @@ -227,7 +226,6 @@ public TestListeners getTestListeners() {
return testListeners;
}


/**
* Gets the test action listeners in this context.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public static Optional<Citrus> get() {
return Optional.ofNullable(citrus);
}


/**
* Provide access to the current Citrus instance.
* Create new instance if it has not been initialized yet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public void doExecute(TestContext context) {
display = message;
}


try (BufferedReader stdin = getInputReader()) {
do {
logger.info(display);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.slf4j.LoggerFactory;
import org.citrusframework.util.StringUtils;


/**
* This action sends a messages to a specified message endpoint. The action holds a reference to
* a {@link org.citrusframework.endpoint.Endpoint}, which is capable of the message transport implementation. So action is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ public Builder seconds(Long seconds) {
return time(String.valueOf(seconds * 1000L), TimeUnit.MILLISECONDS);
}


public Builder time(Duration duration) {
milliseconds(duration.toMillis());
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
* Action transforms a XML document(specified inline or from external file resource)
* with a XSLT document(specified inline or from external file resource)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ public DefaultTestLoader testName(String testName) {
return this;
}


@Override
public void setPackageName(String packageName) {
this.packageName = packageName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ protected HttpURLConnection openConnection(URL url) throws IOException {
return (HttpURLConnection) url.openConnection();
}


/**
* Gets the request url with test variable support.
* @param context The test context to get the url from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ private String sanitizePatten(String pattern) {
return pattern;
}


/**
* Checks on included test groups if we should execute sequence. Included group list should have
* at least one entry matching the sequence test groups restriction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public ConditionExpression getConditionExpression() {
return conditionExpression;
}


/**
* Action builder.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ public Entry addEntry(Entry entry) {
return this;
}


/**
* Gets the content.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public static <T> Stream<T> createShard(Stream<T> testCases, ShardingConfigurati
return createShard(testCases, shardingConfiguration, false);
}


/**
* Creates a sharded stream from the input stream using the provided sharding configuration and a flag to determine
* whether the stream should be parallel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class SocketUtils {

private static final Random random = new Random(System.nanoTime());


public static int findAvailableTcpPort() {
return findAvailableTcpPort(PORT_RANGE_MIN);
}
Expand All @@ -65,7 +64,6 @@ public static int findAvailableTcpPort(int min) {
return candidatePort;
}


/**
* Check if the specified TCP port is currently available on localhost.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public DelegatingPayloadVariableExtractor(Builder builder) {
this.namespaces = builder.namespaces;
}


@Override
public void extractVariables(Message message, TestContext context) {
if (pathExpressions.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.citrusframework;


import org.citrusframework.actions.AbstractAsyncTestAction;
import org.citrusframework.actions.EchoAction;
import org.citrusframework.actions.SleepAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public void messageLogged(BuildEvent event) {
})
.build();


ant.execute(context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.when;


public class InputActionTest extends UnitTestSupport {

private BufferedReader inputReader = Mockito.mock(BufferedReader.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public void testReceiveMessageWithMessagePayloadData() {
TestActor testActor = new TestActor();
testActor.setName("TESTACTOR");


DefaultMessageBuilder controlMessageBuilder = new DefaultMessageBuilder();
controlMessageBuilder.setPayloadBuilder(new DefaultPayloadBuilder("<TestRequest><Message>Hello World!</Message></TestRequest>"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ void header_withString() {
final ReceiveMessageAction.Builder builder = new ReceiveMessageAction.Builder();
final String data = "hello";


//WHEN
builder.message().header(data);

Expand Down Expand Up @@ -557,7 +556,6 @@ void validate_xmlMap() {
assertEquals(value3, xmlMessageValidationContext.getXpathExpressions().get(key3));
}


@Test
void validate_jsonMap() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ public void testSendBuilderWithPayloadResource() throws IOException {
.message()
.body(resource));


final TestCase test = runner.getTestCase();
Assert.assertEquals(test.getActionCount(), 1);
Assert.assertEquals(test.getActions().get(0).getClass(), SendMessageAction.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;


/**
* @since 2.4
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.when;


/**
* @since 2.6.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify;


public class ParallelTest extends UnitTestSupport {

private TestAction action = Mockito.mock(TestAction.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;


public class RepeatUntilTrueTest extends UnitTestSupport {

private TestAction action = Mockito.mock(TestAction.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify;


public class SequenceTest extends UnitTestSupport {

private TestAction action = Mockito.mock(TestAction.class);
Expand Down
Loading

0 comments on commit 680b264

Please sign in to comment.