LinearSearchTest.java 475 Bytes
Newer Older
91pida1bif's avatar
91pida1bif committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.hft.dsa;



import static org.junit.jupiter.api.Assertions.assertEquals;


import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class LinearSearchTest {

	static LinearSearch search;
	
	@BeforeAll
	static void init() {
		search = new LinearSearch();
		search.initialize();
	}
	
	@Test
	void linearSearchFound() {
		assertEquals("Doppelpunkt, Liam", search.lookup("Doppelpunkt, Liam").get().getKey());
	}

}