Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.3.0
    • Labels:
      None

      Description

      When using the TemporaryFile rule as a @ClassRule the rule is not set up correctly - the before method is not executed.

      @ClassRule
      public static final TemporaryFile file = Scribble.newTempFolder().aroundTempFile("index.html")
                                                           .withContent()
                                                           .fromClasspathResource("/index.html")
                                                           .build();
      

      Workaround: use the rule as Instance rule, using the @Rule annotation instead

        Attachments

          Activity

            People

            • Assignee:
              gmuecke GeraldM
              Reporter:
              gmuecke GeraldM
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: