Unit Tests
This commit is contained in:
@ -36,6 +36,7 @@ public class EEPROM extends PICComponent implements EEPROMInterface {
|
||||
}
|
||||
|
||||
public long read (int address) {
|
||||
if (address < 0) return 0;
|
||||
FileReader reader;
|
||||
try {
|
||||
reader = new FileReader("eeprom.json");
|
||||
@ -60,6 +61,7 @@ public class EEPROM extends PICComponent implements EEPROMInterface {
|
||||
}
|
||||
|
||||
public void write (int address, long data) {
|
||||
if (address < 0) return;
|
||||
FileReader reader;
|
||||
try {
|
||||
reader = new FileReader("eeprom.json");
|
||||
@ -172,7 +174,6 @@ public class EEPROM extends PICComponent implements EEPROMInterface {
|
||||
|
||||
@Override
|
||||
public void initialize(PICComponents picComponents) {
|
||||
System.out.println("EEPROM");
|
||||
super.initialize(picComponents);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user