Skip to content

Commit

Permalink
hackathon - test v2
Browse files Browse the repository at this point in the history
  • Loading branch information
aonych committed Nov 3, 2023
1 parent 5314c79 commit ca59f6b
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -246,7 +247,7 @@ private String categoryPath(String... nodeNames)
return "/cm:categoryRoot/cm:generalclassifiable/cm:" + Arrays.stream(nodeNames).collect(joining("/cm:"));
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.springframework.http.HttpStatus;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -166,7 +167,7 @@ public void testQueryByPathOnDeletedCategory() throws InterruptedException {
searchQueryService.expectResultsFromQuery(otherCategoryQuery, testUser, testFile.getName());
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -136,7 +137,7 @@ public void testQueryByPartialCategoryPathB() {
searchQueryService.expectResultsFromQuery(query, testUser, testFile.getName(), testFolder.getName());
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -127,7 +128,7 @@ private FileModel createContent(String filename, String content, FolderModel fol
return dataContent.usingUser(user).usingResource(folderModel).createContent(fileModel);
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void testGetTags_queryAndOperatorNotSupported()
.assertLastError().containsSummary("An invalid WHERE query was received. Unsupported Predicate");
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -275,7 +276,7 @@ private String createDocument(FolderModel folderModel, String filename)
return filename;
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.startupcheck.IndefiniteWaitOneShotStartupCheckStrategy;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -373,7 +374,7 @@ private void cleanUpIndex()
}
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -498,7 +499,7 @@ private static String unique(String prefix)
return prefix + "-" + UUID.randomUUID();
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -270,7 +271,7 @@ private static String unique(String prefix)
return prefix + "-" + UUID.randomUUID();
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.alfresco.rest.search.SearchRequest;
import org.alfresco.utility.model.TestGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -115,7 +116,7 @@ public void testParentQueryAgainstFolderAfterParentCategoryDeletion()
searchQueryService.expectResultsFromQuery(query, testUser);
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.alfresco.rest.search.SearchRequest;
import org.alfresco.utility.model.FileModel;
import org.alfresco.utility.model.TestGroup;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -337,7 +338,7 @@ public void testSecondaryAncestorWithCopiedSecondaryParentNode()
folders().delete(folderT);
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public interface Folders extends Map<String, Folder>
void delete(Folder folder);
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.alfresco.rest.search.SearchRequest;
import org.alfresco.utility.model.FileModel;
import org.alfresco.utility.model.TestGroup;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -330,7 +331,7 @@ public void testSecondaryParentWithCopiedSecondaryParentNode()
folders().delete(folderT);
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.alfresco.rest.search.SearchRequest;
import org.alfresco.utility.model.FileModel;
import org.alfresco.utility.model.TestGroup;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -363,7 +364,7 @@ public void testSecondaryParentWithCopiedSecondaryParentNode()
folders().delete(folderT);
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.alfresco.rest.search.SearchRequest;
import org.alfresco.tas.AlfrescoStackInitializer;
import org.alfresco.utility.model.TestGroup;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -138,7 +139,7 @@ public void testSecondaryPathWithNodeHavingComplexSecondaryRelationship()
folders(M).getName());
}

@AfterTest
@AfterClass
public void reset()
{
resetRetryNumber();
Expand Down

0 comments on commit ca59f6b

Please sign in to comment.