1. Project Clover database Wed Jan 17 2024 23:40:18 CST
  2. Package org.europa.together.domain

File HashAlgorithmTest.java

 

Code metrics

0
5
1
1
30
24
1
0.2
5
1
1

Classes

Class Line # Actions
HashAlgorithmTest 12 5 0% 1 0
1.0100%
 

Contributing tests

This file is covered by 1 test. .

Source view

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 toggle @Test
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    }