Moved classes to website appropriate directory

This commit is contained in:
2022-01-04 23:02:35 -05:00
parent 64c1767969
commit 36ffc9fe0f
15 changed files with 621 additions and 629 deletions

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestAtbash.java
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/TestAtbash.java
//Matthew Ellison
// Created: 07-25-21
//Modified: 12-30-21
//These are the tests for the Atbash class
package mattrixwv.CipherStreamJava;
//Modified: 01-04-22
package com.mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestAutokey.java
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/TestAutokey.java
//Matthew Ellison
// Created: 07-26-21
//Modified: 12-30-21
//These are the tests for the Vigenere class
package mattrixwv.CipherStreamJava;
//Modified: 01-04-22
package com.mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java
//CipherStreamJava/src/test/java/com/mattrixwv/CipherStreamJava/TestCaesar.java
//Matthew Ellison
// Created: 07-25-21
//Modified: 12-30-21
//These are the tests for the Caesar class
package mattrixwv.CipherStreamJava;
//Modified: 01-04-22
package com.mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;

View File

@@ -1,59 +1,58 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestMorse.java
//Matthew Ellison
// Created: 07-28-21
//Modified: 07-28-21
//These are the tests for the Morse class
package mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class TestMorse{
@Test
public void testDecode(){
Morse cipher = new Morse();
//Test 1
String input = "... --- ...";
String correctOutput = "SOS";
String output = cipher.decode(input);
assertEquals("Morse Decoding failed the first test", correctOutput, output);
//Test 2
input = "-- --- .-. ... . -.-. --- -.. .";
correctOutput = "MORSECODE";
output = cipher.decode(input);
assertEquals("Morse Decoding failed the second test", correctOutput, output);
//Test 3
input = ".---- ..--- ...-- ----. ---.. --...";
correctOutput = "123987";
output = cipher.decode(input);
assertEquals("Morse Decoding failed the third test", correctOutput, output);
}
@Test
public void testEncode(){
Morse cipher = new Morse();
//Test 1
String input = "sos";
String correctOutput = "... --- ...";
String output = cipher.encode(input);
assertEquals("Morse Encoding failed the first test", correctOutput, output);
//Test 2
input = "MORSE, CODE";
correctOutput = "-- --- .-. ... . -.-. --- -.. .";
output = cipher.encode(input);
assertEquals("Morse Encoding failed the second test", correctOutput, output);
//Test 3
input = "1.23 987";
correctOutput = ".---- ..--- ...-- ----. ---.. --...";
output = cipher.encode(input);
assertEquals("Morse Encoding failed the third test", correctOutput, output);
}
}
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/TestMorse.java
//Matthew Ellison
// Created: 07-28-21
//Modified: 01-04-22
package com.mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class TestMorse{
@Test
public void testDecode(){
Morse cipher = new Morse();
//Test 1
String input = "... --- ...";
String correctOutput = "SOS";
String output = cipher.decode(input);
assertEquals("Morse Decoding failed the first test", correctOutput, output);
//Test 2
input = "-- --- .-. ... . -.-. --- -.. .";
correctOutput = "MORSECODE";
output = cipher.decode(input);
assertEquals("Morse Decoding failed the second test", correctOutput, output);
//Test 3
input = ".---- ..--- ...-- ----. ---.. --...";
correctOutput = "123987";
output = cipher.decode(input);
assertEquals("Morse Decoding failed the third test", correctOutput, output);
}
@Test
public void testEncode(){
Morse cipher = new Morse();
//Test 1
String input = "sos";
String correctOutput = "... --- ...";
String output = cipher.encode(input);
assertEquals("Morse Encoding failed the first test", correctOutput, output);
//Test 2
input = "MORSE, CODE";
correctOutput = "-- --- .-. ... . -.-. --- -.. .";
output = cipher.encode(input);
assertEquals("Morse Encoding failed the second test", correctOutput, output);
//Test 3
input = "1.23 987";
correctOutput = ".---- ..--- ...-- ----. ---.. --...";
output = cipher.encode(input);
assertEquals("Morse Encoding failed the third test", correctOutput, output);
}
}

View File

@@ -1,16 +1,15 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestPlayfair.java
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/TestPlayfair.java
//Matthew Ellison
// Created: 07-30-21
//Modified: 01-04-22
//These are the tests for the Playfair class
package mattrixwv.CipherStreamJava;
package com.mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
import mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
import org.junit.Test;
public class TestPlayfair{

View File

@@ -1,15 +1,15 @@
//CipherStreamJava/src/test/java/mattrixwv/CipherStreamJava/TestPolybiusSquare.java
//CipherStreamJava/src/test/java/com/mattrixwv/CipherStreamJava/TestPolybiusSquare.java
//Mattrixwv
// Created: 01-04-22
//Modified: 01-04-22
package mattrixwv.CipherStreamJava;
package com.mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
import mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
import org.junit.Test;
public class TestPolybiusSquare{