Package sis.studentinfo.strategy

Source Code of sis.studentinfo.strategy.HonorsGradingStrategyTest

package sis.studentinfo.strategy;

import static org.junit.Assert.*;

import org.junit.Test;

import sis.studentinfo.Student;
import sis.studentinfo.strategy.impl.HonorsGradingStrategy;

/**
* @author Carl Adler(C.A.)
* */
public class HonorsGradingStrategyTest {

  @Test
  public void testGetGradePoints() {
    HonorsGradingStrategy strategy = new HonorsGradingStrategy();
    assertEquals(5, strategy.getGradePointsFor(Student.Grade.A));
    assertEquals(4, strategy.getGradePointsFor(Student.Grade.B));
    assertEquals(3, strategy.getGradePointsFor(Student.Grade.C));
    assertEquals(2, strategy.getGradePointsFor(Student.Grade.D));
    assertEquals(0, strategy.getGradePointsFor(Student.Grade.F));
  }

}
TOP

Related Classes of sis.studentinfo.strategy.HonorsGradingStrategyTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.