Skip to content

Commit

Permalink
cleanup work
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenp committed Dec 18, 2013
1 parent 7578439 commit 43757b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.baeldung.persistence.model.Foo;
import org.baeldung.persistence.service.FooService;
import org.baeldung.spring.PersistenceConfig;
import org.junit.Ignore;
import org.hibernate.exception.DataException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -51,8 +51,7 @@ public final void whenSameEntityIsCreatedTwice_thenDataException() {
service.create(entity);
}

@Test
@Ignore
@Test(expected = DataException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo(randomAlphabetic(2048)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.baeldung.persistence.model.Foo;
import org.baeldung.persistence.service.IFooService;
import org.baeldung.spring.PersistenceConfig;
import org.hibernate.exception.DataException;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -52,8 +53,7 @@ public final void whenSameEntityIsCreatedTwice_thenDataException() {
service.create(entity);
}

@Test
@Ignore
@Test(expected = DataException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo(randomAlphabetic(2048)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import org.baeldung.persistence.model.Foo;
import org.baeldung.spring.PersistenceJPAConfig;
import org.hibernate.exception.DataException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -49,7 +50,7 @@ public final void whenSameEntityIsCreatedTwice_thenDataException() {
service.create(entity);
}

@Test
@Test(expected = DataException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo());
}
Expand Down

0 comments on commit 43757b1

Please sign in to comment.