001package edu.pdx.cs.joy.student;
002
003import org.junit.jupiter.api.Test;
004
005import java.util.ArrayList;
006
007import static org.hamcrest.MatcherAssert.assertThat;
008import static org.hamcrest.core.IsEqual.equalTo;
009
010/**
011 * Unit tests for the Student class.  In addition to the JUnit annotations,
012 * they also make use of the <a href="http://hamcrest.org/JavaHamcrest/">hamcrest</a>
013 * matchers for more readable assertion statements.
014 */
015public class StudentTest
016{
017
018  @Test
019  void studentNamedPatIsNamedPat() {
020    String name = "Pat";
021    var pat = new Student(name, new ArrayList<>(), 0.0, "Doesn't matter");
022    assertThat(pat.getName(), equalTo(name));
023  }
024
025}