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

hazendaz / httpunit / 755

14 Feb 2026 07:14PM UTC coverage: 80.526%. Remained the same
755

push

github

hazendaz
[ci] Fix badge

3213 of 4105 branches covered (78.27%)

Branch coverage included in aggregate %.

8245 of 10124 relevant lines covered (81.44%)

0.81 hits per line

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

75.0
/src/main/java/com/meterware/httpunit/NotHTMLException.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2000-2026 Russell Gold
6
 * Copyright 2021-2000 hazendaz
7
 */
8
package com.meterware.httpunit;
9

10
/**
11
 * The Class NotHTMLException.
12
 */
13
class NotHTMLException extends RuntimeException {
14

15
    /** The Constant serialVersionUID. */
16
    private static final long serialVersionUID = 1L;
17

18
    /**
19
     * Instantiates a new not HTML exception.
20
     *
21
     * @param contentType
22
     *            the content type
23
     */
24
    NotHTMLException(String contentType) {
1✔
25
        _contentType = contentType;
1✔
26
    }
1✔
27

28
    @Override
29
    public String getMessage() {
30
        return "The content type of the response is '" + _contentType
×
31
                + "': it must be 'text/html' in order to be recognized as HTML";
32
    }
33

34
    /** The content type. */
35
    private String _contentType;
36
}
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