Class CircuitSimExtension

java.lang.Object
io.zucchini.circuitsimtester.extension.CircuitSimExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

public class CircuitSimExtension extends Object implements org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback
Extends JUnit to understand testing CircuitSim subcircuits.

To use: annotate a JUnit test class with @ExtendWith(CircuitSimExtension.class)

See Also:
  • Constructor Details

    • CircuitSimExtension

      public CircuitSimExtension()
  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
      Throws:
      Exception
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
      Throws:
      Exception