Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Bumped dependencies and adapted failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ameingast committed Sep 28, 2015
1 parent 2d40881 commit 0d0fec8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-spring</artifactId>

<version>2.8.0</version>
<version>2.8.6</version>
<name>${project.artifactId}</name>

<description>
Expand Down Expand Up @@ -145,12 +145,12 @@
</build>

<properties>
<spring.version>4.0.5.RELEASE</spring.version>
<spring.version>4.2.1.RELEASE</spring.version>
<sesame.version>${project.version}</sesame.version>
<junit.version>4.11</junit.version>
<slf4j.version>1.7.7</slf4j.version>
<junit.version>4.12</junit.version>
<slf4j.version>1.7.12</slf4j.version>
<cglib.version>3.1</cglib.version>
<maven-compiler.version>3.1</maven-compiler.version>
<maven-compiler.version>3.3</maven-compiler.version>

<encoding>UTF-8</encoding>
<language-level>1.6</language-level>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public void testTransactionWithSerializableIsolationLevel() {
}

@Test
@Transactional(value = "transactionManager", isolation = Isolation.READ_UNCOMMITTED)
public void testTransactionWithReadUnCommittedIsolationLevel() {
@Transactional(value = "transactionManager", isolation = Isolation.READ_COMMITTED)
public void testTransactionWithReadCommittedIsolationLevel() {
RepositoryConnection connection = repositoryConnectionFactory.getConnection();

Assert.assertEquals(IsolationLevels.READ_UNCOMMITTED, connection.getIsolationLevel());
Assert.assertEquals(IsolationLevels.READ_COMMITTED, connection.getIsolationLevel());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import org.junit.Assert;
import org.junit.Test;
import org.openrdf.IsolationLevels;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.repository.RepositoryException;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import java.util.Arrays;
Expand Down Expand Up @@ -55,4 +57,21 @@ public void testWriteData() throws Exception {
addData(repositoryManagerConnectionFactory);
assertDataPresent(repositoryManagerConnectionFactory);
}


@Test
@Transactional(value = "transactionManager", isolation = Isolation.SERIALIZABLE)
public void testTransactionWithSerializableIsolationLevel() {
RepositoryConnection connection = repositoryConnectionFactory.getConnection();

Assert.assertEquals(IsolationLevels.SERIALIZABLE, connection.getIsolationLevel());
}

@Test
@Transactional(value = "transactionManager", isolation = Isolation.READ_COMMITTED)
public void testTransactionWithReadCommittedIsolationLevel() {
RepositoryConnection connection = repositoryConnectionFactory.getConnection();

Assert.assertEquals(IsolationLevels.READ_COMMITTED, connection.getIsolationLevel());
}
}

0 comments on commit 0d0fec8

Please sign in to comment.