mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-26 23:58:04 +00:00
Java 11 migrate all remaining s (#1120)
* Moves saga to Java 11 * Moves semaphore to Java 11 * Moves servant to Java 11 * Moves serverless to Java 11 * Moves service-layer to Java 11 * Moves service-locator to Java 11 * Moves sharding to Java 11 * Moves singleton to Java 11 * Moves spatial-partition to Java 11 * Moves specification to Java 11 * Moves state to Java 11 * Moves step-builder to Java 11 * Moves strategy to Java 11 * Moves subclass-sandbox to Java 11 * Fixes checkstyle issues
This commit is contained in:
committed by
Ilkka Seppälä
parent
310ae50248
commit
cd2a2e7711
@@ -23,14 +23,12 @@
|
||||
|
||||
package com.iluwatar.servicelayer.spell;
|
||||
|
||||
import com.iluwatar.servicelayer.common.BaseDaoTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
import com.iluwatar.servicelayer.common.BaseDaoTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Date: 12/28/15 - 11:02 PM
|
||||
*
|
||||
@@ -44,10 +42,10 @@ public class SpellDaoImplTest extends BaseDaoTest<Spell, SpellDaoImpl> {
|
||||
|
||||
@Test
|
||||
public void testFindByName() {
|
||||
final SpellDaoImpl dao = getDao();
|
||||
final List<Spell> allSpells = dao.findAll();
|
||||
for (final Spell spell : allSpells) {
|
||||
final Spell spellByName = dao.findByName(spell.getName());
|
||||
final var dao = getDao();
|
||||
final var allSpells = dao.findAll();
|
||||
for (final var spell : allSpells) {
|
||||
final var spellByName = dao.findByName(spell.getName());
|
||||
assertNotNull(spellByName);
|
||||
assertEquals(spell.getId(), spellByName.getId());
|
||||
assertEquals(spell.getName(), spellByName.getName());
|
||||
|
||||
Reference in New Issue
Block a user