com.atlassian.bamboo.utils
Class BambooMockitoTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.bamboo.utils.BambooMockitoTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class BambooMockitoTestCase
extends junit.framework.TestCase


Field Summary
protected  java.io.File temporaryDirectory
           
 
Constructor Summary
BambooMockitoTestCase()
           
 
Method Summary
protected  void _preserveSystemProperties(SystemProperty... properties)
           
protected static void assertContentTextEquals(java.io.InputStream expected, java.io.InputStream actual, boolean trimLines)
           
protected static void assertContentTextEquals(java.io.Reader expected, java.io.Reader actual, boolean trimLines)
           
protected  Plan mockPlanAndStubPlanManager(PlanManager planManager, PlanKey planKey)
           
protected
<T extends Plan>
T
mockPlanAndStubPlanManager(PlanManager planManager, PlanKey planKey, java.lang.Class<T> planClass)
           
protected  void setUp()
          Initialize all @Mock annotated fields
protected  void stubHttpServletRequest(javax.servlet.http.HttpServletRequest request, java.lang.String scheme, java.lang.String serverName, int serverPort, java.lang.String contextPath, java.lang.String servletPath)
           
protected
<T extends ResultsSummary>
void
stubResultsSummaryManager(ResultsSummaryManager resultsSummaryManager, T resultsSummary)
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

temporaryDirectory

protected java.io.File temporaryDirectory
Constructor Detail

BambooMockitoTestCase

public BambooMockitoTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Initialize all @Mock annotated fields

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

_preserveSystemProperties

protected void _preserveSystemProperties(SystemProperty... properties)

mockPlanAndStubPlanManager

protected Plan mockPlanAndStubPlanManager(@NotNull
                                          PlanManager planManager,
                                          @NotNull
                                          PlanKey planKey)

mockPlanAndStubPlanManager

protected <T extends Plan> T mockPlanAndStubPlanManager(@NotNull
                                                        PlanManager planManager,
                                                        @NotNull
                                                        PlanKey planKey,
                                                        java.lang.Class<T> planClass)

stubResultsSummaryManager

protected <T extends ResultsSummary> void stubResultsSummaryManager(@NotNull
                                                                    ResultsSummaryManager resultsSummaryManager,
                                                                    T resultsSummary)

stubHttpServletRequest

protected void stubHttpServletRequest(@NotNull
                                      javax.servlet.http.HttpServletRequest request,
                                      java.lang.String scheme,
                                      java.lang.String serverName,
                                      int serverPort,
                                      java.lang.String contextPath,
                                      java.lang.String servletPath)

assertContentTextEquals

protected static void assertContentTextEquals(java.io.Reader expected,
                                              java.io.Reader actual,
                                              boolean trimLines)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

assertContentTextEquals

protected static void assertContentTextEquals(java.io.InputStream expected,
                                              java.io.InputStream actual,
                                              boolean trimLines)
                                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.