Skip to content

Commit

Permalink
Merge branch 'feature/508112-TicketLimitesLongitudLatitudPuntoInteres…
Browse files Browse the repository at this point in the history
…' into develop
  • Loading branch information
mda544 committed Nov 21, 2024
2 parents b48ae4a + 7413bc4 commit 0a86eac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void setUp() {
}

@Test
public void TestAnhadirPuntoInteres() {
public void TestAnhadirPuntoInteres() {

// Caso de exito
openActionBarOverflowOrOptionsMenu(context);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package es.unican.gasolineras.activities.puntoInteres;

import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
Expand All @@ -9,9 +10,11 @@

import androidx.test.core.app.ApplicationProvider;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.robolectric.RobolectricTestRunner;

import es.unican.gasolineras.model.PuntoInteres;
Expand All @@ -26,7 +29,9 @@ public class AnhadirPuntoInteresPresenterTest {

Context context = ApplicationProvider.getApplicationContext();

@Mock
private IAnhadirPuntoInteresContract.View vistaMock;

private IPuntosInteresDAO puntosInteresDao;
private AnhadirPuntoInteresPresenter presenter;

Expand Down Expand Up @@ -54,6 +59,13 @@ public void setUp() {

presenter = new AnhadirPuntoInteresPresenter(vistaMock);
}

@After
public void tearDown() {
if (db != null && db.isOpen()) {
db.close();
}
}

@Test
public void TestOnGuardarPuntoInteresClicked() {
Expand Down

0 comments on commit 0a86eac

Please sign in to comment.