@@ -0,0 +1,789 @@
+import org.junit.Assert;%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport java.util.ArrayList;%0D%0A%0D%0Apublic class BatallaTest %7B%0D%0A%0D%0A    @Test%0D%0A    public void debeDefinirElGanadorEntreDosBatallones()%7B%0D%0A        Batallon batallon1 = new Batallon();%0D%0A        Batallon batallon2 = new Batallon();%0D%0A        Batalla batalla = new Batalla(batallon1, batallon2);%0D%0A        Assert.assertEquals(batallon1, batalla.definirGanador());%0D%0A    %7D%0D%0A%0D%0A    @Test%0D%0A    public void debeDefinirElPremioDeUnaBatalla()%7B%0D%0A        Batalla batalla = crearBatalla();%0D%0A        Assert.assertEquals(new ArrayList%3C%3E(),batalla.definirPremio());%0D%0A    %7D%0D%0A%0D%0A    private Batalla crearBatalla()%7B%0D%0A        Batallon batallon1 = new Batallon();%0D%0A        Batallon batallon2 = new Batallon();%0D%0A        return new Batalla(batallon1, batallon2);%0D%0A    %7D%0D%0A%7D

Add files via upload