You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Anne Yu (JIRA)" <ji...@apache.org> on 2015/08/07 21:14:47 UTC

[jira] [Created] (SENTRY-836) Refactor test TestDatabaseProvider.java: make each test case independent from other tests, not assume any external states/data

Anne Yu created SENTRY-836:
------------------------------

             Summary: Refactor test TestDatabaseProvider.java: make each test case independent from other tests, not assume any external states/data
                 Key: SENTRY-836
                 URL: https://issues.apache.org/jira/browse/SENTRY-836
             Project: Sentry
          Issue Type: Bug
            Reporter: Anne Yu


Ideally tests should be independent from each other, not assume any external state/test data pre-exist on test environments. It helps setup before each test and clean up after each test using a method from base test class.

If the same data has to be present for each test, maybe put it into Before then clean up in After.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)