org.nuiton.jredmine
Class AbstractRedmineServiceTest<S extends org.nuiton.jredmine.RedmineAnonymousService>

java.lang.Object
  extended by org.nuiton.jredmine.AbstractRedmineServiceTest<S>
All Implemented Interfaces:
RedmineTestContract
Direct Known Subclasses:
DefaultRedmineAnonymousServiceTest, DefaultRedmineServiceAsAnonymousTest, DefaultRedmineServiceTest

public abstract class AbstractRedmineServiceTest<S extends org.nuiton.jredmine.RedmineAnonymousService>
extends Object
implements RedmineTestContract

Created: 2 janv. 2010

Author:
tchemit

Field Summary
protected  org.nuiton.jredmine.model.Attachment attachment
           
protected  org.nuiton.jredmine.model.Attachment[] attachments
           
protected  org.nuiton.jredmine.model.IssueCategory[] issueCategories
           
protected  org.nuiton.jredmine.model.IssuePriority[] issuePriorities
           
protected  org.nuiton.jredmine.model.Issue[] issues
           
protected  org.nuiton.jredmine.model.IssueStatus[] issueStatuses
           
protected  org.nuiton.jredmine.model.News[] news
           
protected  org.nuiton.jredmine.model.News newz
           
protected  org.nuiton.jredmine.model.Project project
           
protected  org.nuiton.jredmine.model.Project[] projects
           
protected  org.nuiton.jredmine.model.TimeEntry[] timeEntries
           
protected  org.nuiton.jredmine.model.TimeEntry timeEntry
           
protected  org.nuiton.jredmine.model.Tracker[] trackers
           
protected  org.nuiton.jredmine.model.User[] users
           
protected  org.nuiton.jredmine.model.Version version
           
protected  org.nuiton.jredmine.model.Version[] versions
           
 
Fields inherited from interface org.nuiton.jredmine.RedmineTestContract
ISSUE_ID, PROJECT_NAME, VERSION_NAME
 
Constructor Summary
AbstractRedmineServiceTest(Class<S> serviceType)
           
 
Method Summary
 void getAttachments()
           
 void getClosedIssues()
           
 void getIssueCategories()
           
 void getIssuePriorities()
           
 void getIssueStatuses()
           
 void getIssueTimeEntries()
           
 void getNews()
           
 void getOpenedIssues()
           
 void getProject()
           
 void getProjectIssues()
           
 void getProjectMembers()
           
 void getProjects()
           
protected  S getService()
           
 void getTrackers()
           
 void getVersion()
           
 void getVersionIssues()
           
 void getVersions()
           
 void isInit()
           
protected  org.nuiton.jredmine.rest.RedmineRestClient newClient(org.nuiton.io.rest.RestClientConfiguration configuration)
           
protected  S newService()
           
 void setUp()
           
static void setUpClass()
           
 void tearDown()
           
static void tearDownClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.jredmine.RedmineTestContract
addAttachment, addIssueTime, addNews, addVersion, getUserProjects, nextVersion, updateVersion
 

Field Detail

projects

protected org.nuiton.jredmine.model.Project[] projects

project

protected org.nuiton.jredmine.model.Project project

versions

protected org.nuiton.jredmine.model.Version[] versions

version

protected org.nuiton.jredmine.model.Version version

users

protected org.nuiton.jredmine.model.User[] users

issues

protected org.nuiton.jredmine.model.Issue[] issues

issuePriorities

protected org.nuiton.jredmine.model.IssuePriority[] issuePriorities

issueStatuses

protected org.nuiton.jredmine.model.IssueStatus[] issueStatuses

issueCategories

protected org.nuiton.jredmine.model.IssueCategory[] issueCategories

trackers

protected org.nuiton.jredmine.model.Tracker[] trackers

newz

protected org.nuiton.jredmine.model.News newz

news

protected org.nuiton.jredmine.model.News[] news

attachment

protected org.nuiton.jredmine.model.Attachment attachment

attachments

protected org.nuiton.jredmine.model.Attachment[] attachments

timeEntry

protected org.nuiton.jredmine.model.TimeEntry timeEntry

timeEntries

protected org.nuiton.jredmine.model.TimeEntry[] timeEntries
Constructor Detail

AbstractRedmineServiceTest

public AbstractRedmineServiceTest(Class<S> serviceType)
Method Detail

getService

protected S getService()

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

tearDownClass

public static void tearDownClass()
                          throws Exception
Throws:
Exception

newService

protected final S newService()
                                                                          throws Exception
Throws:
Exception

newClient

protected org.nuiton.jredmine.rest.RedmineRestClient newClient(org.nuiton.io.rest.RestClientConfiguration configuration)

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

isInit

public void isInit()
            throws Exception
Throws:
Exception

getProjects

public void getProjects()
                 throws Exception
Specified by:
getProjects in interface RedmineTestContract
Throws:
Exception

getIssuePriorities

public void getIssuePriorities()
                        throws Exception
Specified by:
getIssuePriorities in interface RedmineTestContract
Throws:
Exception

getIssueStatuses

public void getIssueStatuses()
                      throws Exception
Specified by:
getIssueStatuses in interface RedmineTestContract
Throws:
Exception

getProject

public void getProject()
                throws Exception
Specified by:
getProject in interface RedmineTestContract
Throws:
Exception

getIssueCategories

public void getIssueCategories()
                        throws Exception
Specified by:
getIssueCategories in interface RedmineTestContract
Throws:
Exception

getTrackers

public void getTrackers()
                 throws Exception
Specified by:
getTrackers in interface RedmineTestContract
Throws:
Exception

getNews

public void getNews()
             throws Exception
Specified by:
getNews in interface RedmineTestContract
Throws:
Exception

getProjectMembers

public void getProjectMembers()
                       throws Exception
Specified by:
getProjectMembers in interface RedmineTestContract
Throws:
Exception

getProjectIssues

public void getProjectIssues()
                      throws Exception
Specified by:
getProjectIssues in interface RedmineTestContract
Throws:
Exception

getVersions

public void getVersions()
                 throws Exception
Specified by:
getVersions in interface RedmineTestContract
Throws:
Exception

getVersion

public void getVersion()
                throws Exception
Specified by:
getVersion in interface RedmineTestContract
Throws:
Exception

getVersionIssues

public void getVersionIssues()
                      throws Exception
Specified by:
getVersionIssues in interface RedmineTestContract
Throws:
Exception

getOpenedIssues

public void getOpenedIssues()
                     throws Exception
Specified by:
getOpenedIssues in interface RedmineTestContract
Throws:
Exception

getClosedIssues

public void getClosedIssues()
                     throws Exception
Specified by:
getClosedIssues in interface RedmineTestContract
Throws:
Exception

getIssueTimeEntries

public void getIssueTimeEntries()
                         throws Exception
Specified by:
getIssueTimeEntries in interface RedmineTestContract
Throws:
Exception

getAttachments

public void getAttachments()
                    throws Exception
Specified by:
getAttachments in interface RedmineTestContract
Throws:
Exception


Copyright © 2009-2011 CodeLutin. All Rights Reserved.