Skip to content

Commit

Permalink
cleaned issues and added Codacy badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jarekratajski committed Jan 27, 2017
1 parent f1a4d77 commit 846fe36
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
airomem
=======
[![Build Status](https://travis-ci.org/airomem/airomem.svg?branch=master)](https://travis-ci.org/airomem/airomem)

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6c932d5fca3c4936aaaa8fab6a84a8e4)](https://www.codacy.com/app/jarekratajski/airomem?utm_source=github.com&utm_medium=referral&utm_content=airomem/airomem&utm_campaign=Badge_Grade)

Airomem is Java persistence framework based on [Prevayler](http://prevayler.org/).
The most important features are:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import org.apache.commons.io.FileUtils;
import pl.setblack.badass.Politician;

import java.io.File;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ public abstract class AbstractPrevaylerTest<T extends Serializable> {

protected abstract T createSystem();

public AbstractPrevaylerTest() {

}

@Before
public void setUp() {
File localFolder = new File("prevayler/");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void testSimpleControllerQuery() {
@Test
public void testCreateTwice() {
//GIVEN
final Persistent<HashMap<String, String>> persistent1 = Persistent.create(localFolder.toPath(), StorableObject.createTestHashMap());
Persistent.create(localFolder.toPath(), StorableObject.createTestHashMap());
//WHEN
final Persistent<HashMap<String, String>> persistent2 = Persistent.create(localFolder.toPath(), StorableObject.createTestHashMap());
String val = persistent2.query(x -> x.get("key:2"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void shouldCreateInitialSimpleSystemWhenSupplierGiven() {
try (
final PersistenceController ctrl = PrevaylerBuilder.newBuilder().useSupplier(() -> StorableObject.createTestObject()).build();) {
//THEN
Assert.assertNotNull(ctrl);
assertNotNull(ctrl);
}
}

Expand Down Expand Up @@ -220,7 +220,7 @@ public void shouldWorkOnDisabledRFT() {
try {
ctrl.execute((x) -> {
x.internalMap.put("key:1", "myVal");
throw new RuntimeException();
throw new IllegalStateException();
});

} catch (RuntimeException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ public class SequenceTest {

private Sequence sequence;

public SequenceTest() {
}

@Before
public void setUp() {
this.sequence = new Sequence();
Expand Down

0 comments on commit 846fe36

Please sign in to comment.