Fakultas Ilmu Komputer UI

Commit df25ec64 authored by FIRLANDI ALTHAF RIZQI ANSYARI's avatar FIRLANDI ALTHAF RIZQI ANSYARI
Browse files

Merge branch 'firlandi' into 'staging'

Add PaymentModelTest

See merge request !23
parents 2b090a06 1c9936c3
Pipeline #134152 passed with stages
in 22 minutes and 45 seconds
package id.ac.ui.cs.advprog.landiandfriends.model;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class PaymentModelTest {
@Test
void testItemValue() {
PaymentModel payment = new PaymentModel();
payment.setName("Fauzan Rizqan");
payment.setCardName("Master Card");
payment.setCardNumber("1234123412341234");
payment.setExpiryDate("12/20");
payment.setCvv("123");
assertEquals("Fauzan Rizqan", payment.getName());
assertEquals("Master Card", payment.getCardName());
assertEquals("1234123412341234", payment.getCardNumber());
assertEquals("12/20", payment.getExpiryDate());
assertEquals("123", payment.getCvv());
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment