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

hazendaz / jmockit1 / 496

15 Nov 2025 05:33PM UTC coverage: 72.192% (-0.008%) from 72.2%
496

push

github

web-flow
Merge pull request #412 from hazendaz/renovate/major-spring-core

Update spring core to v7 (major)

5677 of 8360 branches covered (67.91%)

Branch coverage included in aggregate %.

11922 of 16018 relevant lines covered (74.43%)

0.74 hits per line

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

80.0
/samples/LoginService/src/main/java/jmockit/loginExample/domain/userAccount/UserAccount.java
1
/*
2
 * MIT License
3
 * Copyright (c) 2006-2025 JMockit developers
4
 * See LICENSE file for full license text.
5
 */
6
package jmockit.loginExample.domain.userAccount;
7

8
import edu.umd.cs.findbugs.annotations.NonNull;
9

10
public final class UserAccount {
11
    private final String id;
12
    private String password;
13
    private boolean loggedIn;
14
    private boolean revoked;
15

16
    public UserAccount(String id, String password) {
1✔
17
        this.id = id;
1✔
18
        this.password = password;
1✔
19
    }
1✔
20

21
    public String getId() {
22
        return id;
1✔
23
    }
24

25
    public void setPassword(String password) {
26
        this.password = password;
×
27
    }
×
28

29
    public boolean isLoggedIn() {
30
        return loggedIn;
1✔
31
    }
32

33
    public void setLoggedIn(boolean value) {
34
        loggedIn = value;
1✔
35
    }
1✔
36

37
    public boolean isRevoked() {
38
        return revoked;
1✔
39
    }
40

41
    public void setRevoked(boolean value) {
42
        revoked = value;
1✔
43
    }
1✔
44

45
    public boolean passwordMatches(String candidatePassword) {
46
        return password.equals(candidatePassword);
1✔
47
    }
48

49
    public static UserAccount find(@NonNull String accountId) {
50
        throw new UnsupportedOperationException("Not implemented");
×
51
    }
52
}
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