cleanup work

This commit is contained in:
eugenp 2013-12-18 14:55:41 +02:00
parent 757843907d
commit 43757b1955
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
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;
@ -51,8 +51,7 @@ public class FooServicePersistenceIntegrationTest {
service.create(entity);
}
@Test
@Ignore
@Test(expected = DataException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo(randomAlphabetic(2048)));
}

View File

@ -5,6 +5,7 @@ import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
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;
@ -52,8 +53,7 @@ public class FooServicePersistenceIntegrationTest {
service.create(entity);
}
@Test
@Ignore
@Test(expected = DataException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo(randomAlphabetic(2048)));
}

View File

@ -4,6 +4,7 @@ import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
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;
@ -49,7 +50,7 @@ public class FooServicePersistenceIntegrationTest {
service.create(entity);
}
@Test
@Test(expected = DataException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo());
}