package ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.DAOImplTest;

import static org.junit.Assert.*;

import org.junit.Test;

import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.dao.AlbumDAO;
import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.dao.BandDAO;
import mockit.Mocked;

public class BandDAOTest {
	@Mocked BandDAO bandDao;
	
	@Test
	public void test() {
		fail("Not yet implemented");
	}

}

@@ -100,16 +100,69 @@
 ert.*;%0A%0A
+import java.util.LinkedList;%0Aimport java.util.List;%0A%0A
 import o
@@ -173,24 +173,25 @@
 unit.Test;%0A%0A
+%0A
 import ar.ed
@@ -243,18 +243,18 @@
 dao.
-Album
+Band
 DAO;%0A
+%0A
 impo
@@ -306,28 +306,57 @@
 sderock.
-dao.BandDAO;
+model.Band;%0A%0Aimport mockit.Expectations;%0A
 %0Aimport 
@@ -450,50 +450,588 @@
 oid 
-test
+getAllBandsTestCase
 ()
- 
 %7B%0A%09%09
-fail(%22Not yet implemented%22
+List%3CBand%3E allBands = new LinkedList%3CBand%3E();%0A%09%09Band bandInst1= new Band();%0A%09%09Band bandInst2= new Band();%0A%09%09Band bandInst3= new Band();%0A%09%0A%09%09bandInst1.setName(%22Soda Stereo%22);%0A%09%09bandInst1.setId(%221%22);%0A%09%09%0A%09%09bandInst2.setName(%22Babasonicos%22);%0A%09%09bandInst2.setId(%222%22);%0A%09%09%0A%09%09bandInst3.setName(%22Eruca Sativa%22);%0A%09%09bandInst3.setId(%223%22);%0A%09%09%0A%09%09allBands.add(bandInst1);%0A%09%09allBands.add(bandInst2);%0A%09%09allBands.add(bandInst3);%0A%09%09%0A%09%09new Expectations()%7B%0A%09%09%09%7B%0A%09%09%09%09bandDao.getAllBands();%0A%09%09%09%09returns (allBands);%0A%09%09%09%7D%0A%09%09%7D;%0A%09%09assertEquals(allBands,bandDao.getAllBands()  
 );%0A%09%7D%0A
+%09%0A%09
 %0A%7D%0A

Test bandDAO