14 Replies Latest reply on Feb 18, 2011 10:25 AM by Olivier Pernet

    Code duplication in ProtocolProjectorTest / running tests in an IDE

    Olivier Pernet Newbie

      I'm adding a few more tests to the CTK, and I've noticed there is a lot of code duplication in ProtocolProjectorTest. Is this on purpose? I know some people prefer making test code as obvious as possible, even if that means a lot of copy-paste.


      Another related question: how do you run the tests in an IDE? They're looking for the Scribble files using System.getSystemResourceAsStream, which doesn't work in my IDE. I've been changing the code to a FileInputStream while I run the tests, but I always need to change it back to make the tests work in Maven.