• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 17837235071

18 Sep 2025 05:58PM UTC coverage: 13.87%. Remained the same
17837235071

push

github

tkuhn
chore: Remove serialVersionUIDs

443 of 4022 branches covered (11.01%)

Branch coverage included in aggregate %.

1133 of 7341 relevant lines covered (15.43%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/page/GetNamePage.java
1
package com.knowledgepixels.nanodash.page;
2

3
import com.knowledgepixels.nanodash.User;
4
import com.knowledgepixels.nanodash.Utils;
5
import org.apache.wicket.markup.html.basic.Label;
6
import org.apache.wicket.request.mapper.parameter.PageParameters;
7

8
/**
9
 * This page retrieves the display name of a user based on their ID.
10
 * It is used to provide a simple way to get usernames for display purposes.
11
 */
12
public class GetNamePage extends NanodashPage {
13

14
    /**
15
     * The mount path for the GetNamePage.
16
     */
17
    public static final String MOUNT_PATH = "/get-name";
18

19
    /**
20
     * {@inheritDoc}
21
     */
22
    @Override
23
    public String getMountPath() {
24
        return MOUNT_PATH;
×
25
    }
26

27
    /**
28
     * Constructor for the GetNamePage.
29
     *
30
     * @param parameters Page parameters containing the user ID.
31
     */
32
    public GetNamePage(final PageParameters parameters) {
33
        super(parameters);
×
34
        if (parameters.contains("id")) {
×
35
            String name = User.getShortDisplayName(Utils.vf.createIRI(parameters.get("id").toString()));
×
36
            add(new Label("name", name));
×
37
        } else {
×
38
            throw new IllegalArgumentException("argument 'id' not found");
×
39
        }
40
        // TODO return Content-Type text/plain instead of text/html
41
    }
×
42

43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc