Initial commit

This commit is contained in:
2024-04-07 19:41:57 -04:00
parent 2b3212cb44
commit 8f0d1c64bd
95 changed files with 6787 additions and 45 deletions

View File

@@ -0,0 +1,50 @@
package com.mattrixwv.cipherstream.aspect;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.junit.jupiter.MockitoExtension;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
@Tag("unit-test")
@ExtendWith(MockitoExtension.class)
public class CipherStreamLoggingAspectTest{
@InjectMocks
private CipherStreamLoggingAspect aspect;
@Test
public void testMappedFunction(){
aspect.mappedFunction();
assertNotNull(aspect);
}
@Test
public void testCipherMethod(){
aspect.cipherMethod();
assertNotNull(aspect);
}
@Test
public void testGetCipherInfo(){
ObjectNode jsonNode = new ObjectMapper().createObjectNode();
jsonNode.put("something", "Something Important");
aspect.getCipherInfo(null);
assertNotNull(aspect);
}
}