Skip to content

Commit

Permalink
ALFREDAPI-548 [cleanup] class names
Browse files Browse the repository at this point in the history
  • Loading branch information
codingBenVdS committed Jul 22, 2024
1 parent 1e8a896 commit e016dc7
Show file tree
Hide file tree
Showing 44 changed files with 110 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
/**
* Created by Michiel Huygen on 27/11/2015.
*/
public class CategoryServiceTestJavaApi extends JavaApiBaseTest {
public class CategoryServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(CategoryServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(CategoryServiceTest.class);
private static final String ADMIN_USER_NAME = "admin";

private QName generalClassifiableQName;
private ICategoryService categoryService;

public CategoryServiceTestJavaApi(){
public CategoryServiceTest(){
categoryService = getBean(ICategoryService.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@
import org.alfresco.service.namespace.QName;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CommentServiceTestJavaApi extends JavaApiBaseTest {
public class CommentServiceTest extends JavaApiBaseTest {
private static final String commentTitle = "testComment";
private static final String commentContent = "Test Comment";
private static FileInfo testDocumentNode;

private ICommentService commentService;
private CommentService alfrescoCommentService;

public CommentServiceTestJavaApi(){
public CommentServiceTest(){
commentService = getBean(ICommentService.class);
alfrescoCommentService = getBean("CommentService",CommentService.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import org.slf4j.LoggerFactory;


public class ContentServiceTestJavaApi extends JavaApiBaseTest {
private final static Logger logger = LoggerFactory.getLogger(ContentServiceTestJavaApi.class);
public class ContentServiceTest extends JavaApiBaseTest {
private final static Logger logger = LoggerFactory.getLogger(ContentServiceTest.class);

INodeService nodeService;
IContentService contentService;
Expand All @@ -39,7 +39,7 @@ public class ContentServiceTestJavaApi extends JavaApiBaseTest {
private NodeRef testNode;
private FileInfo mainTestFolder;

public ContentServiceTestJavaApi(){
public ContentServiceTest(){
// initialise the local beans
contentService = getBean(IContentService.class);
nodeService= getBean(INodeService.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
/**
* Created by Michiel Huygen on 24/11/2015.
*/
public class DictionaryServiceTestJavaApi extends JavaApiBaseTest {
public class DictionaryServiceTest extends JavaApiBaseTest {

private IDictionaryService service;

public DictionaryServiceTestJavaApi(){
public DictionaryServiceTest(){
service = getBean(IDictionaryService.class);
}
@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* Created by kenneth on 11.03.16.
*/
public class FileFolderServiceTestJavaApi extends JavaApiBaseTest {
public class FileFolderServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(JavaApiBaseTest.class);

Expand All @@ -46,7 +46,7 @@ public class FileFolderServiceTestJavaApi extends JavaApiBaseTest {
private SolrTestHelperImpl solrHelper;


public FileFolderServiceTestJavaApi(){
public FileFolderServiceTest(){
// initialise the local beans
service = getBean(IFileFolderService.class);
fileFolderService = serviceRegistry.getFileFolderService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.junit.Test;


public class AlfrescoPropertyConvertorTestJavaApi extends JavaApiBaseTest {
public class AlfrescoPropertyConvertorTest extends JavaApiBaseTest {

@Test
public void testPropertyConvertOnRegisteredConstraint() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class NodeServiceTestJavaApi extends JavaApiBaseTest {
public class NodeServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(NodeServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(NodeServiceTest.class);
private static final String TEXT_MIMETYPE = "text/plain";
StoreRef alfStoreRef = new StoreRef("workspace", "SpacesStore");
eu.xenit.apix.data.StoreRef apixStoreRef = new eu.xenit.apix.data.StoreRef("workspace", "SpacesStore");
Expand All @@ -69,7 +69,7 @@ public class NodeServiceTestJavaApi extends JavaApiBaseTest {
private Set<NodeRef> roots;
private ICategoryService categoryService;

public NodeServiceTestJavaApi(){
public NodeServiceTest(){
// initialise the local beans
service = getBean(INodeService.class);
alfrescoNodeService = serviceRegistry.getNodeService();
Expand Down Expand Up @@ -533,7 +533,7 @@ public void testCreateNodeCustomTypeWithRequiredProperties() {
*/
@Test/*(expected = org.apache.http.client.HttpResponseException.class)*/
public void testCreateNodeCustomTypeWithoutRequiredProperties() {
final NodeServiceTestJavaApi self = this;
final NodeServiceTest self = this;

try {
// custom type containing the mandatory property but this property is missing.
Expand Down Expand Up @@ -613,7 +613,7 @@ public void testCreateReadContent() throws Exception {
public void testCreateNodeWithMetadata() throws UnsupportedEncodingException {
this.cleanUp();
NodeRef companyHomeRef = repository.getCompanyHome();
final NodeServiceTestJavaApi self = this;
final NodeServiceTest self = this;

try {
FileInfo mainTestFolder = this.createMainTestFolder(companyHomeRef);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
/**
* Created by Jasperhilven on 24-Oct-16.
*/
public class PeopleServiceTestJavaApi extends JavaApiBaseTest {
public class PeopleServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(PeopleServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(PeopleServiceTest.class);

private IPeopleService peopleService;
private PersonService alfrescoPersonService;

public PeopleServiceTestJavaApi(){
public PeopleServiceTest(){
// initialise the local beans
peopleService = getBean(IPeopleService.class);
alfrescoPersonService = serviceRegistry.getPersonService();
Expand All @@ -49,7 +49,7 @@ public void TestGetPerson() {
final String email = "Email";
final String firstName = "FirstName";
final String lastName = "LastName";
final PeopleServiceTestJavaApi self = this;
final PeopleServiceTest self = this;
props.put(ContentModel.PROP_EMAIL, email);
props.put(ContentModel.PROP_FIRSTNAME, firstName);
props.put(ContentModel.PROP_LASTNAME, lastName);
Expand Down Expand Up @@ -115,7 +115,7 @@ public void TestGetPeople() {
final String emailB = "EmailB";
final String firstNameB = "FirstNameB";
final String lastNameB = "LastNameB";
final PeopleServiceTestJavaApi self = this;
final PeopleServiceTest self = this;

propsA.put(ContentModel.PROP_EMAIL, emailA);
propsA.put(ContentModel.PROP_FIRSTNAME, firstNameA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
/**
* Created by kenneth on 10.03.16.
*/
public class PermissionServiceTestJavaApi extends JavaApiBaseTest {
public class PermissionServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(PermissionServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(PermissionServiceTest.class);
private static final String ADMIN_USER_NAME = "admin";

private IPermissionService service;
Expand All @@ -46,7 +46,7 @@ public class PermissionServiceTestJavaApi extends JavaApiBaseTest {
private FileFolderService fileFolderService;
private SolrTestHelperImpl solrHelper;

public PermissionServiceTestJavaApi(){
public PermissionServiceTest(){
// initialise the local beans
service = getBean(IPermissionService.class);
permissionService = serviceRegistry.getPermissionService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
/**
* Created by Jasperhilven on 24-Jan-17.
*/
public class PropertyServiceTestJavaApi extends JavaApiBaseTest {
public class PropertyServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(PropertyServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(PropertyServiceTest.class);

private IPropertyService propertyService;

public PropertyServiceTestJavaApi(){
public PropertyServiceTest(){
// initialise the local beans
propertyService = getBean(IPropertyService.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
*
* This class contains tests with facets that were only supported from Alfresco 5+.
*/
public class SearchServiceFacetsTestJavaApi extends SearchServiceTestJavaApi {
public class SearchServiceFacetsTest extends SearchServiceTest {

private static final String ADMIN_USER_NAME = "admin";
private static final Logger logger = LoggerFactory.getLogger(SearchServiceFacetsTestJavaApi.class);
private static final Logger logger = LoggerFactory.getLogger(SearchServiceFacetsTest.class);


@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class SearchServiceTestJavaApi extends JavaApiBaseTest {
public abstract class SearchServiceTest extends JavaApiBaseTest {

private static final String LONG_MAX_VALUE = String.valueOf(Long.MAX_VALUE);
private static final String LONG_MAX_VALUE_PLUS_ONE = new BigInteger(LONG_MAX_VALUE).add(new BigInteger("1"))
.toString();

private static final Logger logger = LoggerFactory.getLogger(SearchServiceTestJavaApi.class);
private static final Logger logger = LoggerFactory.getLogger(SearchServiceTest.class);
private static final String ADMIN_USER_NAME = "admin";
public static final String DESCRIPTION_SET_OF_1001 = "descriptionSetOf1001";
protected ISearchService searchService;
Expand All @@ -49,7 +49,7 @@ public abstract class SearchServiceTestJavaApi extends JavaApiBaseTest {
protected SolrTestHelperImpl solrHelper;
protected SolrFacetService facetService;

public SearchServiceTestJavaApi(){
public SearchServiceTest(){
searchService = getBean(ISearchService.class);
nodeService = serviceRegistry.getNodeService();
namespacePrefixResolver = getBean("namespaceService",NamespacePrefixResolver.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.junit.Test;

@Ignore("Disabled for GHA build")
public class TermHitHighlightingTestJavaApi extends JavaApiBaseTest {
public class TermHitHighlightingTest extends JavaApiBaseTest {
INodeService nodeService;
SearchService searchService;
RetryingTransactionHelper retryingTransactionHelper;
Expand All @@ -36,7 +36,7 @@ public class TermHitHighlightingTestJavaApi extends JavaApiBaseTest {
+ "\nNever think to surprise them.\nYour face approaching ever\nso friendly is the white flag\nthey ignore. There is no truce\n"
+ "\nwith the furies. A mirror’s temperature is always at zero.\n";

public TermHitHighlightingTestJavaApi(){
public TermHitHighlightingTest(){
// initialise the local beans
nodeService = getBean(INodeService.class);
retryingTransactionHelper = getBean(RetryingTransactionHelper.class);
Expand Down Expand Up @@ -83,7 +83,7 @@ public void searchResponseContainsHighlights() throws InterruptedException {
// The best we can do is check if there are nodes detected that still need to be indexed.
// therefore we wait a period for solr to detect the nodes,
// then use the check to wait until the indexing process is finished.
SearchServiceTestJavaApi.waitAWhile(20);
SearchServiceTest.waitAWhile(20);
solrHelper.waitForContentSync(initialCleanDocs);

/* The options set are equivalent to the following JSON:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
import org.junit.Before;
import org.junit.Test;

public class TransactionServiceTestJavaApi extends JavaApiBaseTest {
public class TransactionServiceTest extends JavaApiBaseTest {

ITransactionService service;
IFileFolderService ffservice;
FileInfo mainTestFolder;
public TransactionServiceTestJavaApi(){
public TransactionServiceTest(){
service = getBean(ITransactionService.class);
ffservice = getBean(IFileFolderService.class);
}
Expand All @@ -33,7 +33,7 @@ public void SetupTransactionServiceTest() {

@Test
public void TestTransactionService_NotransactionBaseScenario() {
final TransactionServiceTestJavaApi me = this;
final TransactionServiceTest me = this;
FileInfo testNode = me.createTestNode(mainTestFolder.getNodeRef(), "testnode");
assertTrue(testNode.getName().equals("testnode"));
eu.xenit.apix.data.NodeRef cNR = ffservice.getChildNodeRef(c.apix(mainTestFolder.getNodeRef()), "testnode");
Expand All @@ -42,7 +42,7 @@ public void TestTransactionService_NotransactionBaseScenario() {

@Test
public void TestTransactionServiceSuccessTransaction() {
final TransactionServiceTestJavaApi me = this;
final TransactionServiceTest me = this;
final FileInfo shouldExist = service.doInTransaction(new Callable<FileInfo>() {
@Override
public FileInfo call() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
/**
* Created by Stan on 25-Mar-16.
*/
public class TranslationServiceTestJavaApi extends JavaApiBaseTest {
public class TranslationServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(TranslationServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(TranslationServiceTest.class);

private static String facet_bucket_month_label = "faceted-search.date.one-month.label";
private ITranslationService service;

public TranslationServiceTestJavaApi(){
public TranslationServiceTest(){
service = getBean(ITranslationService.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class VersionHistoryServiceTestJavaApi extends JavaApiBaseTest {
public class VersionHistoryServiceTest extends JavaApiBaseTest {

private final static Logger logger = LoggerFactory.getLogger(VersionHistoryServiceTestJavaApi.class);
private final static Logger logger = LoggerFactory.getLogger(VersionHistoryServiceTest.class);
private IVersionHistoryService versionHistoryService;
private org.alfresco.service.cmr.version.VersionService alfrizcoVersionHistoryService;

//Test variables
private NodeRef testNode;

public VersionHistoryServiceTestJavaApi(){
public VersionHistoryServiceTest(){
versionHistoryService = getBean(IVersionHistoryService.class);
alfrizcoVersionHistoryService = serviceRegistry.getVersionService();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
import org.slf4j.LoggerFactory;


public abstract class WorkflowServiceJavaApiBaseTest extends JavaApiBaseTest {
public abstract class WorkflowServiceBaseTest extends JavaApiBaseTest {

protected final static Logger logger = LoggerFactory.getLogger(WorkflowServiceJavaApiBaseTest.class);
protected final static Logger logger = LoggerFactory.getLogger(WorkflowServiceBaseTest.class);
protected static final String USER_ADMIN = "admin";
protected static final String USER_A = "A";
protected static final String USER_B = "B";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class WorkflowService_CancelMyWorkflow_TestJavaApi extends WorkflowService_JavaApi_BaseMethod_Test {
public class WorkflowService_CancelMyWorkflow_Test extends WorkflowService__BaseMethod_Test {

protected final static Logger logger = LoggerFactory.getLogger(WorkflowService_CancelMyWorkflow_TestJavaApi.class);
protected final static Logger logger = LoggerFactory.getLogger(WorkflowService_CancelMyWorkflow_Test.class);

protected void setupSampleDataLocal() {
Object result = this.transactionHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class WorkflowService_CancelSomebodyElseWorkflowAsAdmin_TestJavaApi extends
WorkflowService_JavaApi_BaseMethod_Test {
public class WorkflowService_CancelSomebodyElseWorkflowAsAdmin_Test extends
WorkflowService__BaseMethod_Test {

protected final static Logger logger = LoggerFactory
.getLogger(WorkflowService_CancelSomebodyElseWorkflowAsAdmin_TestJavaApi.class);
.getLogger(WorkflowService_CancelSomebodyElseWorkflowAsAdmin_Test.class);

protected void setupSampleDataLocal() {
Object result = this.transactionHelper
Expand Down
Loading

0 comments on commit e016dc7

Please sign in to comment.