Skip to content

Commit

Permalink
** NOT FOR MERGING ** - Introduce some test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed May 1, 2024
1 parent 7dd8ee1 commit d4d92d0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class CamelContextJsonSchemaTest {
@Test
void resolveComponentJsonSchema() throws IOException {
String json = ((FastCamelContext) context).getComponentParameterJsonSchema("timer");
Assertions.assertNotNull(json);
Assertions.assertNull(json);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class JasyptDisabledTest {
@Test
void propertyNotDecryptedIfJasyptDisabled() {
String result = producerTemplate.requestBody("direct:start", null, String.class);
assertEquals("Secure config value: " + SECURE_CONFIG_VALUE, result);
assertEquals("Secure config values: " + SECURE_CONFIG_VALUE, result);
}

public static final class JasyptRoutes extends RouteBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void loadOtherEtcd3() {
/* A simple autogenerated test */
RestAssured.get("/etcd3/load/other/etcd3")
.then()
.statusCode(200);
.statusCode(204);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
package org.apache.camel.quarkus.component.avro.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.fail;

@QuarkusIntegrationTest
class AvroIT extends AvroTest {

@Test
void testAvro() {
fail("Oh no!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void valueMarshalUnmarshalUsingInstanceClassNameAvroDslShouldSucceed() {

@Test
void valueMarshalUnmarshalUsingSchemaAvroDslShouldSucceed() {
RestAssured.get("/avro/valueMarshalUnmarshalUsingSchemaAvroDsl/hector").then().statusCode(200).body(is("hector"));
RestAssured.get("/avro/valueMarshalUnmarshalUsingSchemaAvroDsl/hector").then().statusCode(200).body(is("hectors"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
package org.apache.camel.quarkus.component.csv.it;

import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import jakarta.ws.rs.Consumes;
Expand All @@ -45,14 +42,7 @@ public class CsvResource {
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.TEXT_PLAIN)
public String json2csv(String json) throws Exception {
LOG.infof("Transforming json %s", json);
final List<Map<String, Object>> objects = new ObjectMapper().readValue(json,
new TypeReference<List<Map<String, Object>>>() {
});
return producerTemplate.requestBody(
"direct:json-to-csv",
objects,
String.class);
return null;
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit d4d92d0

Please sign in to comment.