import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import static se.ugli.jocote.DriverManager.getConnection;
import java.util.Optional;
import org.junit.Test;
import se.ugli.jocote.*;
try (Connection connection = getConnection("activemq:/TEST")) {
connection.put("hello world");
Optional<String> msgOpt = connection.get();
assertThat(msgOpt.isPresent(), equalTo(true));
assertThat(msgOpt.get(), equalTo("hello world"));
}
-
Notifications
You must be signed in to change notification settings - Fork 0
JMS made easy!
License
ugli/jocote
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|