Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
HashAlgorithmTest | 12 | 5 | 0% | 1 | 0 |
1 | package org.europa.together.domain; | |
2 | ||
3 | import org.europa.together.JUnit5Preperator; | |
4 | import org.europa.together.application.LogbackLogger; | |
5 | import org.europa.together.business.Logger; | |
6 | import static org.junit.jupiter.api.Assertions.*; | |
7 | import org.junit.jupiter.api.Test; | |
8 | import org.junit.jupiter.api.extension.ExtendWith; | |
9 | ||
10 | @SuppressWarnings("unchecked") | |
11 | @ExtendWith({JUnit5Preperator.class}) | |
12 | public class HashAlgorithmTest { | |
13 | ||
14 | private static final Logger LOGGER = new LogbackLogger(HashAlgorithmTest.class); | |
15 | ||
16 | 1 | ![]() |
17 | void enumValues() { | |
18 | 1 | LOGGER.log("TEST CASE: enumValues", LogLevel.DEBUG); |
19 | ||
20 | 1 | assertEquals("MD5", |
21 | HashAlgorithm.MD5.toString()); | |
22 | 1 | assertEquals("SHA", |
23 | HashAlgorithm.SHA.toString()); | |
24 | 1 | assertEquals("SHA-256", |
25 | HashAlgorithm.SHA256.toString()); | |
26 | 1 | assertEquals("SHA-512", |
27 | HashAlgorithm.SHA512.toString()); | |
28 | } | |
29 | ||
30 | } |