Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pronto pra apresentar.

  • Loading branch information...
commit e99998c932f48a5c85ffda4bb6245dc2eace82fd 1 parent 471afa5
@emersonborges authored
View
3  test/locadora/dao/adicionais/TestAdicionalDaoImpl.java
@@ -12,6 +12,7 @@
import org.hibernate.Transaction;
import org.hibernate.classic.Session;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -42,7 +43,7 @@ public void testInserir() throws Exception{
public void testEditar(){
}
- @Test
+ @Test @Ignore
public void testListAll(){
Session session = MyHibernateSingleton.getInstance().openSession();
Transaction transaction = session.beginTransaction();
View
4 test/locadora/dao/clientes/TestClienteDaoImpl.java
@@ -11,6 +11,7 @@
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -50,10 +51,11 @@ public void listarTest() throws Exception{
System.out.println(cliente.toString());
}
}
- @Test
+ @Test @Ignore
public void removerTest() throws Exception{
Cliente cliente = new ClienteNormal();
cliente.setId((long) 16);
clienteDaoImpl.remover(cliente);
}
+
}
View
3  test/locadora/dao/descontos/TestDescontoDaoImpl.java
@@ -12,6 +12,7 @@
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -51,7 +52,7 @@ public void listarTest() throws Exception{
System.out.println(desconto.toString());
}
}
- @Test
+ @Test @Ignore
public void removerTest() throws Exception{
Desconto desconto = new DescontoGOLD();
desconto.setId((long) 4);
View
3  test/locadora/dao/reservas/TestDevolucaoDaoImpl.java
@@ -11,6 +11,7 @@
import locadora.persistence.dao.hibernate.factory.DaoFactory;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -28,7 +29,7 @@ public void tearDown() {
setDevolucaoDaoImpl(null);
}
- @Test
+ @Test @Ignore
public void inserirTest() throws Exception{
DevolucaoDaoImpl devolucaoDaoImpl = (DevolucaoDaoImpl) DaoFactory.getInstance().createDao("DevolucaoDao");
View
3  test/locadora/dao/reservas/TestLocacaoDaoImpl.java
@@ -11,6 +11,7 @@
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -28,7 +29,7 @@ public void tearDown() {
locacaoDaoImpl = null;
}
- @Test
+ @Test @Ignore
public void inserirTest() throws Exception{
Locacao locacao = new Locacao();
View
5 test/locadora/dao/reservas/TestReservaDaoImpl.java
@@ -11,6 +11,7 @@
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
@@ -27,7 +28,7 @@ public void setUp() {
public void tearDown() {
reservaDaoImpl = null;
}
- @Test
+ @Test @Ignore
public void inserirTest() throws Exception{
assertNotNull(reservaDaoImpl);
Cliente cliente = new ClienteNormal();
@@ -66,7 +67,7 @@ public void listarTest() throws Exception{
}
System.out.println("\n");
}
- @Test
+ @Test @Ignore
public void removerTest() throws Exception{
Reserva reserva = new Reserva();
reserva.setId((long) 1);
View
3  test/locadora/dao/veiculos/TestCaminhaoDaoImpl.java
@@ -4,10 +4,11 @@
import locadora.persistence.dao.hibernate.CaminhaoDaoImpl;
import locadora.persistence.dao.hibernate.factory.DaoFactory;
+import org.junit.Ignore;
import org.junit.Test;
public class TestCaminhaoDaoImpl {
- @Test
+ @Test @Ignore
public void inserirTest() throws Exception {
CaminhaoDaoImpl caminhaoDaoImpl = (CaminhaoDaoImpl) DaoFactory.getInstance().createDao("CaminhaoDao");
Please sign in to comment.
Something went wrong with that request. Please try again.