Skip to content

Commit

Permalink
Add caching back
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelayori committed Apr 1, 2024
1 parent 7f27636 commit 6d507bb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/test/java/com/uniovi/Wiq_UnitTests.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.uniovi;

import com.uniovi.dto.PlayerDto;
import com.uniovi.entities.Player;
import com.uniovi.services.PlayerService;
import org.junit.jupiter.api.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ActiveProfiles;
import java.util.List;

import java.util.Optional;

Expand All @@ -23,14 +23,7 @@ public class Wiq_UnitTests {
@Test
@Order(1)
public void testPlayerService() {
// PlayerDto dto = new PlayerDto();
// dto.setUsername("test");
// dto.setPassword("test");
// dto.setEmail("[email protected]");
// dto.setRoles(new String[]{"ROLE_USER"});
// Player player = playerService.addNewPlayer(dto);
// Assertions.assertNotNull(player);
// Optional<Player> playerOptional = playerService.getUser(player.getId());
// Assertions.assertTrue(playerOptional.isPresent());
List<Player> players = playerService.getUsersByRole("ROLE_USER");
Assertions.assertEquals(0, players.size());
}
}

0 comments on commit 6d507bb

Please sign in to comment.