Skip to content

Commit

Permalink
[OHFJIRA-100] : CloseableHttpComponentsMessageSender moved to common …
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
kkovarik committed Nov 19, 2018
1 parent f257ba4 commit b9f3f06
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion common/pom.xml
Expand Up @@ -51,6 +51,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
</dependency>
<!-- enabled configuration properties in OHF classes -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -70,6 +74,10 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http4</artifactId>
</dependency>

<!-- test libs -->
<dependency>
Expand All @@ -84,4 +92,4 @@
</dependency>
</dependencies>

</project>
</project>
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.openhubframework.openhub.core.common.ws.transport.http;
package org.openhubframework.openhub.common.ws.transport.http;

import java.io.IOException;
import java.net.URI;
Expand Down
Expand Up @@ -37,6 +37,7 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.aspectj.EnableSpringConfigured;
import org.springframework.core.io.PathResource;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.util.ReflectionUtils;


Expand Down Expand Up @@ -85,6 +86,9 @@ protected URL findResource(String name) {
.loadClass(TestApplication.class.getName());
Object instance = springApplicationClass.getConstructor(Object[].class)
.newInstance(new Object[] { new Object[] { testApplicationClass } });
// without web
ReflectionTestUtils.setField(instance, "webEnvironment", false);

@SuppressWarnings("resource")
ConfigurableApplicationContext ctx = (ConfigurableApplicationContext) ReflectionUtils
.findMethod(springApplicationClass, "run", String[].class)
Expand Down

0 comments on commit b9f3f06

Please sign in to comment.