}
@Test
- public void testOnReceiveReadData() throws Exception {
+ public void testOnReceiveReadData() {
new TestKit(getSystem()) {
{
testOnReceiveReadData(newTransactionActor(RO, readOnlyTransaction(), "testReadDataRO"));
}
@Test
- public void testOnReceiveReadDataWhenDataNotFound() throws Exception {
+ public void testOnReceiveReadDataWhenDataNotFound() {
new TestKit(getSystem()) {
{
testOnReceiveReadDataWhenDataNotFound(
}
@Test
- public void testOnReceiveDataExistsPositive() throws Exception {
+ public void testOnReceiveDataExistsPositive() {
new TestKit(getSystem()) {
{
testOnReceiveDataExistsPositive(
}
@Test
- public void testOnReceiveDataExistsNegative() throws Exception {
+ public void testOnReceiveDataExistsNegative() {
new TestKit(getSystem()) {
{
testOnReceiveDataExistsNegative(
}
@Test
- public void testOnReceiveBatchedModifications() throws Exception {
+ public void testOnReceiveBatchedModifications() {
new TestKit(getSystem()) {
{
ShardDataTreeTransactionParent parent = Mockito.mock(ShardDataTreeTransactionParent.class);
}
@Test
- public void testOnReceiveBatchedModificationsReadyWithoutImmediateCommit() throws Exception {
+ public void testOnReceiveBatchedModificationsReadyWithoutImmediateCommit() {
new TestKit(getSystem()) {
{
final ActorRef transaction = newTransactionActor(WO, readWriteTransaction(),
assertEquals("getNumBatched", 1, reply.getNumBatched());
batched = new BatchedModifications(tx1, DataStoreVersions.CURRENT_VERSION);
- batched.setReady(true);
+ batched.setReady();
batched.setTotalMessagesSent(2);
transaction.tell(batched, getRef());
}
@Test
- public void testOnReceiveBatchedModificationsReadyWithImmediateCommit() throws Exception {
+ public void testOnReceiveBatchedModificationsReadyWithImmediateCommit() {
new TestKit(getSystem()) {
{
final ActorRef transaction = newTransactionActor(WO, readWriteTransaction(),
BatchedModifications batched = new BatchedModifications(nextTransactionId(),
DataStoreVersions.CURRENT_VERSION);
batched.addModification(new WriteModification(writePath, writeData));
- batched.setReady(true);
+ batched.setReady();
batched.setDoCommitOnReady(true);
batched.setTotalMessagesSent(1);
expectMsgClass(duration("5 seconds"), akka.actor.Status.Failure.class);
batched = new BatchedModifications(tx1, DataStoreVersions.CURRENT_VERSION);
- batched.setReady(true);
+ batched.setReady();
batched.setTotalMessagesSent(2);
transaction.tell(batched, getRef());
BatchedModifications batched = new BatchedModifications(nextTransactionId(),
DataStoreVersions.CURRENT_VERSION);
- batched.setReady(true);
+ batched.setReady();
batched.setTotalMessagesSent(2);
transaction.tell(batched, getRef());
}
@Test
- public void testReadWriteTxOnReceiveCloseTransaction() throws Exception {
+ public void testReadWriteTxOnReceiveCloseTransaction() {
new TestKit(getSystem()) {
{
final ActorRef transaction = newTransactionActor(RW, readWriteTransaction(),
}
@Test
- public void testWriteOnlyTxOnReceiveCloseTransaction() throws Exception {
+ public void testWriteOnlyTxOnReceiveCloseTransaction() {
new TestKit(getSystem()) {
{
final ActorRef transaction = newTransactionActor(WO, readWriteTransaction(),
}
@Test
- public void testReadOnlyTxOnReceiveCloseTransaction() throws Exception {
+ public void testReadOnlyTxOnReceiveCloseTransaction() {
new TestKit(getSystem()) {
{
final ActorRef transaction = newTransactionActor(TransactionType.READ_ONLY, readOnlyTransaction(),