Skip to content

Commit

Permalink
[ci] formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Apr 19, 2024
1 parent 363ad99 commit a101d16
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void addContextResourceLink() {
NamingResourcesImpl namingResources = Mockito.mock(NamingResourcesImpl.class);
Mockito.when(context.getNamingResources()).thenReturn(namingResources);
Mockito.when(namingResources.findResourceLinks())
.thenReturn(new ContextResourceLink[]{new ContextResourceLink()});
.thenReturn(new ContextResourceLink[] {new ContextResourceLink()});

final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter();
final List<ApplicationResource> list = new ArrayList<ApplicationResource>();
Expand All @@ -141,7 +141,7 @@ void addContextResource() {
NamingResourcesImpl namingResources = Mockito.mock(NamingResourcesImpl.class);
Mockito.when(context.getNamingResources()).thenReturn(namingResources);
Mockito.when(namingResources.findResources())
.thenReturn(new ContextResource[]{new ContextResource()});
.thenReturn(new ContextResource[] {new ContextResource()});

final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter();
final List<ApplicationResource> list = new ArrayList<ApplicationResource>();
Expand All @@ -154,7 +154,7 @@ void addContextResource() {
*/
@Test
void applicationFilterMaps() {
Mockito.when(context.findFilterMaps()).thenReturn(new FilterMap[]{new FilterMap()});
Mockito.when(context.findFilterMaps()).thenReturn(new FilterMap[] {new FilterMap()});

final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter();
assertEquals(0, adapter.getApplicationFilterMaps(context).size());
Expand All @@ -165,7 +165,7 @@ void applicationFilterMaps() {
*/
@Test
void applicationFilters() {
Mockito.when(context.findFilterDefs()).thenReturn(new FilterDef[]{new FilterDef()});
Mockito.when(context.findFilterDefs()).thenReturn(new FilterDef[] {new FilterDef()});

final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter();
assertEquals(1, adapter.getApplicationFilters(context).size());
Expand All @@ -177,7 +177,7 @@ void applicationFilters() {
@Test
void applicationInitParams() {
Mockito.when(context.findApplicationParameters())
.thenReturn(new ApplicationParameter[]{new ApplicationParameter()});
.thenReturn(new ApplicationParameter[] {new ApplicationParameter()});

ServletContext servletContext = Mockito.mock(ServletContext.class);
Mockito.when(context.getServletContext()).thenReturn(servletContext);
Expand Down

0 comments on commit a101d16

Please sign in to comment.