Skip to content

Commit 090032c

Browse files
authored
Return Set<Class<?>> from Module "get test" methods (#574)
1 parent f2dd9f0 commit 090032c

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

SkylineToolsStore/src/org/labkey/skylinetoolsstore/SkylineToolsStoreModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected Collection<WebPartFactory> createWebPartFactories()
7474
}
7575

7676
@Override
77-
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart) throws WebPartConfigurationException
77+
public WebPartView<?> getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart) throws WebPartConfigurationException
7878
{
7979
return new SkylineToolsStoreWebPart();
8080
}

lincs/src/org/labkey/lincs/LincsModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected Collection<WebPartFactory> createWebPartFactories()
8585
BaseWebPartFactory runsList = new BaseWebPartFactory(LincsDataView.WEB_PART_NAME)
8686
{
8787
@Override
88-
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, @NotNull Portal.WebPart webPart)
88+
public WebPartView<?> getWebPartView(@NotNull ViewContext portalCtx, @NotNull Portal.WebPart webPart)
8989
{
9090
return new LincsDataView(portalCtx);
9191
}

panoramapublic/src/org/labkey/panoramapublic/PanoramaPublicModule.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ public Set<String> getSchemaNames()
357357
return Collections.singleton(PanoramaPublicSchema.SCHEMA_NAME);
358358
}
359359

360-
@NotNull
361360
@Override
362-
public Set<Class> getIntegrationTests()
361+
public @NotNull Set<Class<?>> getIntegrationTests()
363362
{
364363
return Set.of(
365364
PanoramaPublicController.TestCase.class,
@@ -368,11 +367,10 @@ public Set<Class> getIntegrationTests()
368367
);
369368
}
370369

371-
@NotNull
372370
@Override
373-
public Set<Class> getUnitTests()
371+
public @NotNull Set<Class<?>> getUnitTests()
374372
{
375-
Set<Class> set = new HashSet<>();
373+
Set<Class<?>> set = new HashSet<>();
376374
set.add(PanoramaPublicController.TestCase.class);
377375
set.add(PanoramaPublicNotification.TestCase.class);
378376
set.add(SkylineVersion.TestCase.class);
@@ -384,7 +382,7 @@ public Set<Class> getUnitTests()
384382
set.add(CatalogEntryManager.TestCase.class);
385383
set.add(BlueskyApiClient.TestCase.class);
386384
set.add(PrivateDataReminderSettings.TestCase.class);
387-
return set;
388385

386+
return set;
389387
}
390388
}

signup/src/org/labkey/signup/SignUpModule.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.labkey.api.view.ViewContext;
3232
import org.labkey.api.view.WebPartFactory;
3333
import org.labkey.api.view.WebPartView;
34+
import org.labkey.signup.SignUpController.SignupForm;
3435

3536
import java.util.ArrayList;
3637
import java.util.Collection;
@@ -69,9 +70,9 @@ protected Collection<WebPartFactory> createWebPartFactories()
6970
BaseWebPartFactory signupWebpart = new BaseWebPartFactory("Sign Up")
7071
{
7172
@Override
72-
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart)
73+
public JspView<SignupForm> getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart)
7374
{
74-
JspView<SignUpController.SignupForm> view = new JspView<>("/org/labkey/signup/signupPage.jsp", new SignUpController.SignupForm());
75+
JspView<SignupForm> view = new JspView<>("/org/labkey/signup/signupPage.jsp", new SignupForm());
7576
view.setTitle("Sign Up");
7677

7778
return view;

testresults/src/org/labkey/testresults/TestResultsWebPart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public TestResultsWebPart()
2222
}
2323

2424
@Override
25-
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart) throws WebPartConfigurationException
25+
public WebPartView<?> getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart) throws WebPartConfigurationException
2626
{
2727
Container c =portalCtx.getContainer();
2828
TestsDataBean bean = null;

0 commit comments

Comments
 (0)