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/Atbash.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Atbash.java
//Matthew Ellison //Matthew Ellison
// Created: 07-25-21 // Created: 07-25-21
//Modified: 01-04-22 //Modified: 01-04-22
//This is the declaration of the Atbash class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
public class Atbash{ public class Atbash{

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Autokey.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Autokey.java
//Matthew Ellison //Matthew Ellison
// Created: 07-25-21 // Created: 07-25-21
//Modified: 12-30--21 //Modified: 01-04-22
//This is the declaration of the Autokey class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
public class Autokey extends Vigenere{ public class Autokey extends Vigenere{

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Caesar.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Caesar.java
//Matthew Ellison //Matthew Ellison
// Created: 07-25-21 // Created: 07-25-21
//Modified: 01-04-22 //Modified: 01-04-22
//This is the declaration of the Caesar class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
public class Caesar{ public class Caesar{

View File

@@ -1,8 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Exceptions/InvalidCharacterException.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Exceptions/InvalidCharacterException.java
//Mattrixwv //Mattrixwv
// Created: 01-04-22 // Created: 01-04-22
//Modified: 01-04-22 //Modified: 01-04-22
package mattrixwv.CipherStreamJava.Exceptions; package com.mattrixwv.CipherStreamJava.Exceptions;
public class InvalidCharacterException extends Exception{ public class InvalidCharacterException extends Exception{

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Morse.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Morse.java
//Matthew Ellison //Matthew Ellison
// Created: 07-28-21 // Created: 07-28-21
//Modified: 07-28-21 //Modified: 01-04-22
//This is the declaration of the Morse class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
public class Morse{ public class Morse{

View File

@@ -1,11 +1,12 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Playfair.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Playfair.java
//Matthew Ellison //Matthew Ellison
// Created: 07-30-21 // Created: 07-30-21
//Modified: 01-04-22 //Modified: 01-04-22
//This is the declaration of the Playfair class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
import com.mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
import mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
public class Playfair{ public class Playfair{
//A class representing the location of a character in the grid //A class representing the location of a character in the grid

View File

@@ -1,12 +1,14 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/PolybiusSquare.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/PolybiusSquare.java
//Mattrixwv //Mattrixwv
// Created: 01-04-22 // Created: 01-04-22
//Modified: 01-04-22 //Modified: 01-04-22
package mattrixwv.CipherStreamJava; package com.mattrixwv.CipherStreamJava;
import java.util.StringJoiner; import java.util.StringJoiner;
import mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException; import com.mattrixwv.CipherStreamJava.Exceptions.InvalidCharacterException;
public class PolybiusSquare{ public class PolybiusSquare{
//A class representing the location of a character in the grid //A class representing the location of a character in the grid

View File

@@ -1,9 +1,8 @@
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Vigenere.java //CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Vigenere.java
//Matthew Ellison //Matthew Ellison
// Created: 07-25-21 // Created: 07-25-21
//Modified: 01-04-22 //Modified: 01-04-22
//This is the declaration of the Vigenere class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
import java.util.ArrayList; import java.util.ArrayList;

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 //Matthew Ellison
// Created: 07-25-21 // Created: 07-25-21
//Modified: 12-30-21 //Modified: 01-04-22
//These are the tests for the Atbash class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals; 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 //Matthew Ellison
// Created: 07-26-21 // Created: 07-26-21
//Modified: 12-30-21 //Modified: 01-04-22
//These are the tests for the Vigenere class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals; 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 //Matthew Ellison
// Created: 07-25-21 // Created: 07-25-21
//Modified: 12-30-21 //Modified: 01-04-22
//These are the tests for the Caesar class package com.mattrixwv.CipherStreamJava;
package mattrixwv.CipherStreamJava;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;

View File

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