Package io.zucchini.circuitsimtester.api
package io.zucchini.circuitsimtester.api
Contains wrapper classes which make internal CircuitSim APIs more
friendly for testing, and provides annotations used to instruct
CircuitSimExtension to lookup
subcircuits, pins, or registers.- See Also:
-
ClassDescriptionWraps a CircuitSim Pin component.Allows pretending to push a button placed in a subcircuit.Allows pretending to tick a Clock component placed in a subcircuit.Wraps a CircuitSim input
Pincomponent and provides a convenience method for setting its value.Similar toMockRegisterbut much simpler: manipulates an InputPin which replaced a clock or button and is used to send "pulses" into the circuit.Represents a "ghost" register: a register component replaced with Pin components for easier testing.Wraps a CircuitSim outputPincomponent and provides a convenience method for setting its value.Wraps a CircuitSim RAM component.Wraps a CircuitSim Register component.Validates a subcircuit by checking for issues such as banned components.Wraps a CircuitSim ROM component.Represents and wraps the subcircuit to test.Please seeSubcircuit.lookupMemory(String,int,boolean,MemoryType)for details on this enum.Please seeSubcircuit.mockPulser(String,boolean,PulserType)for details on this enum.InstructsCircuitSimExtensionto find and inject a CircuitSim component into the annotated field in a test class.Please seeSubcircuitComponent.type()for details on this enum.Marks this JUnit test class as testing a subcircuit with the provided.simfile path and subcircuit name.