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

hazendaz / jmockit1 / 398

29 Oct 2025 01:58PM UTC coverage: 72.206% (-0.02%) from 72.226%
398

push

github

web-flow
Merge pull request #395 from hazendaz/develop

Migrate jmockit tests away from javax to jakarta

5683 of 8360 branches covered (67.98%)

Branch coverage included in aggregate %.

11946 of 16055 relevant lines covered (74.41%)

0.74 hits per line

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

0.0
/main/src/main/java/mockit/internal/injection/full/TestConversationJavax.java
1
/*
2
 * Copyright (c) 2006 JMockit developers
3
 * This file is subject to the terms of the MIT license (see LICENSE.txt).
4
 */
5
package mockit.internal.injection.full;
6

7
import javax.enterprise.context.Conversation;
8

9
final class TestConversationJavax implements Conversation {
10
    private boolean currentlyTransient;
11
    private int counter;
12
    private String currentId;
13
    private long currentTimeout;
14

15
    TestConversationJavax() {
×
16
        currentlyTransient = true;
×
17
    }
×
18

19
    @Override
20
    public void begin() {
21
        counter++;
×
22
        currentId = String.valueOf(counter);
×
23
        currentlyTransient = false;
×
24
    }
×
25

26
    @Override
27
    public void begin(String id) {
28
        counter++;
×
29
        currentId = id;
×
30
        currentlyTransient = false;
×
31
    }
×
32

33
    @Override
34
    public void end() {
35
        currentlyTransient = true;
×
36
        currentId = null;
×
37
    }
×
38

39
    @Override
40
    public String getId() {
41
        return currentId;
×
42
    }
43

44
    @Override
45
    public long getTimeout() {
46
        return currentTimeout;
×
47
    }
48

49
    @Override
50
    public void setTimeout(long milliseconds) {
51
        currentTimeout = milliseconds;
×
52
    }
×
53

54
    @Override
55
    public boolean isTransient() {
56
        return currentlyTransient;
×
57
    }
58
}
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