This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Rule; | |
import org.junit.Test; | |
import org.mule.api.MuleMessage; | |
import org.mule.api.client.MuleClient; | |
import org.mule.tck.junit4.FunctionalTestCase; | |
import org.mule.tck.junit4.rule.DynamicPort; | |
import org.mule.transport.NullPayload; | |
import static org.junit.Assert.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="MultipartInboundFlow"> | |
<zeromq:inbound-endpoint address="tcp://*:9090" socket-operation="bind" | |
exchange-pattern="pull"/> | |
<expression-transformer evaluator="groovy" expression="payload[3]"/> | |
... | |
</flow> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<script type="text/javascript" src="js/websocket.js"></script> | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.ricston</groupId> | |
<artifactId>restmoduleexample</artifactId> | |
<packaging>mule</packaging> | |
<name>Mule Restmoduleexample Application</name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
class MuleFtpProxyDriver | |
@@hidden_files = Hash.new | |
@@mutex = Mutex.new | |
def initialize(ip_address, port) | |
@ip_address = ip_address | |
@port = port | |
@id = SecureRandom.uuid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctx.cpp:26:15: fatal error: new: No such file or directory | |
compilation terminated. | |
make[3]: *** [libzmq_la-ctx.lo] Error 1 | |
make[2]: *** [all] Error 2 | |
make[1]: *** [all-recursive] Error 1 | |
make: *** [/opt/android-jzmq/output-arm/lib/libzmq.a] Error 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
public class CalculatorServiceTestCase { | |
@Test | |
public void testCalculatorService() throws Exception { | |
SoapUITestCaseRunner testCaseRunner = new SoapUITestCaseRunner(); | |
SoapUIMockServiceRunner mockServiceRunner = new SoapUIMockServiceRunner(); | |
testCaseRunner.setProjectFile("src/test/resources/calculator-soapui-project.xml"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
@Test | |
public void testMapping() throws Exception { | |
// Hibernate configuration | |
Map<String, String> hibernateProperties = new HashMap<String, String>(); | |
hibernateProperties.put("hibernate.dialect", "org.hibernate.dialect.DerbyTenSevenDialect"); | |
hibernateProperties.put("hibernate.connection.driver_class", "org.apache.derby.jdbc.EmbeddedDriver"); | |
hibernateProperties.put("hibernate.connection.url", "jdbc:derby:target/test-database/database;create=true"); | |
hibernateProperties.put("hibernate.hbm2ddl.auto", "create"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.opensourcesoftwareandme; | |
public class HelloWorldImpl{ | |
public String sayHi(String text) { | |
return "Hello " + text; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.opensourcesoftwareandme; | |
import javax.ws.rs.core.Application; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.Set; | |
public class HelloWorldApp extends Application { | |
public Set<Class<?>> getClasses() { |
OlderNewer