1 package be.dvw.administration.test;
2
3 import be.dvw.administration.util.CastorUtils;
4 import be.dvw.administration.services.scores.ScoreService;
5 import be.dvw.administration.services.scores.ScoreServiceCastorImpl;
6 import be.dvw.administration.services.instruments.InstrumentService;
7 import be.dvw.administration.services.instruments.InstrumentServiceCastorImpl;
8 import be.dvw.administration.model.Score;
9 import be.dvw.administration.model.Instrument;
10 import junit.framework.TestCase;
11 import org.exolab.castor.xml.ValidationException;
12 import org.exolab.castor.xml.MarshalException;
13
14 import java.io.IOException;
15 import java.io.FileNotFoundException;
16 import java.io.File;
17 import java.util.List;
18
19 /***
20 * User: Toon
21 * Date: 4-jul-2005
22 * Time: 19:00:46
23 */
24 public class TestInstrumentService extends TestCase
25
26
27 {
28 InstrumentService iServ = new InstrumentServiceCastorImpl();
29
30 public void testGetAllscores() throws Exception
31 {
32 assertEquals(3, iServ.getAll().size());
33 }
34
35 public void testLoadPartituur() throws Exception
36 {
37 Instrument i = iServ.load(2);
38 assertEquals(2,i.getId());
39 assertEquals("Besson", i.getBrand());
40 assertEquals("Bugel", i.getInstrumentGroup());
41
42 }
43
44 }