Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Collection<String> getSummary(Container c)
}

@Override
public @NotNull Set<Class> getIntegrationTests()
public @NotNull Set<Class<?>> getIntegrationTests()
{
return PageFlowUtil.set(SelfRegistrationController.TestCase.class);
}
Expand Down
7 changes: 3 additions & 4 deletions WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ protected void init() {
registerPermissions();
}

@Override
@NotNull
protected Collection<WebPartFactory> createWebPartFactories()
{
Expand Down Expand Up @@ -546,17 +547,15 @@ public void versionUpdate(ModuleContext moduleContext) throws Exception
}

@Override
@NotNull
public Set<Class> getIntegrationTests()
public @NotNull Set<Class<?>> getIntegrationTests()
{
return new Reflections("org.labkey.wnprc_ehr").getSubTypesOf(Assert.class).stream()
.filter(c -> c.getSimpleName().endsWith("IntegrationTest"))
.collect(Collectors.toSet());
}

@Override
@NotNull
public Set<Class> getUnitTests()
public @NotNull Set<Class<?>> getUnitTests()
{
return new Reflections("org.labkey.wnprc_ehr").getSubTypesOf(Assert.class).stream()
.filter(c -> c.getSimpleName().endsWith("UnitTest"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class WaterCalendarWebPartFactory extends BaseWebPartFactory
public WaterCalendarWebPartFactory(){super ("Water Calendar");}

@Override
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, @NotNull Portal.WebPart webpart){

public WebPartView<?> getWebPartView(@NotNull ViewContext portalCtx, @NotNull Portal.WebPart webpart)
{
Map<String, String> props = webpart.getPropertyMap();

String animalIds = webpart.getPropertyMap().get("animalIds");
Expand All @@ -32,7 +32,7 @@ public WebPartView getWebPartView(@NotNull ViewContext portalCtx, @NotNull Porta
unBindJSON.put(unBindComponent);
}

JspView view = new JspView("/org/labkey/wnprc_ehr/pages/husbandry/WaterCalendar.jsp");
JspView<?> view = new JspView<>("/org/labkey/wnprc_ehr/pages/husbandry/WaterCalendar.jsp");
view.setTitle("Water Calendar");
view.setFrame(WebPartView.FrameType.PORTAL);

Expand Down