Updated test coverage
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user