Updated test coverage

This commit is contained in:
2023-04-17 01:17:59 -04:00
parent 575ff04ecd
commit 494293c311
22 changed files with 2479 additions and 2970 deletions

View File

@@ -1,7 +1,7 @@
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/combination/ADFGX.java
//Mattrixwv
// Created: 01-25-22
//Modified: 07-09-22
//Modified: 04-14-23
package com.mattrixwv.cipherstream.combination;
@@ -55,7 +55,7 @@ public class ADFGX{
throw new InvalidInputException("Input cannot be null");
}
logger.debug("original input string '{}'", inputString);
logger.debug("Original input string '{}'", inputString);
if(!preserveCapitals){
logger.debug("Removing capitals");
@@ -77,7 +77,7 @@ public class ADFGX{
if(this.inputString.isBlank()){
throw new InvalidInputException("Input cannot be blank");
}
logger.debug("cleaned input string '{}'", inputString);
logger.debug("Cleaned input string '{}'", inputString);
}
//Format the output string with capitals, symbols, and numbers that are in the input string
protected void formatOutputStringEncode(){
@@ -106,8 +106,8 @@ public class ADFGX{
}
}
logger.debug("Saving output string '{}'", outputString);
outputString = output.toString();
logger.debug("Saving output string '{}'", outputString);
}
protected void formatOutputStringDecode(){
logger.debug("Formatting output string to match input string");
@@ -135,8 +135,8 @@ public class ADFGX{
}
}
logger.debug("Saving output string '{}'", output);
outputString = output.toString();
logger.debug("Saving output string '{}'", outputString);
}
//Encodes the inputString and stores the result in outputString
protected void encode() throws InvalidCharacterException, InvalidInputException, InvalidKeywordException{