File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
test/org/opensolaris/opengrok/analysis Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
20
20
/*
21
- * Copyright (c) 2010, 2015 , Oracle and/or its affiliates. All rights reserved.
21
+ * Copyright (c) 2010, 2018 , Oracle and/or its affiliates. All rights reserved.
22
22
* Portions Copyright (c) 2017, Chris Fraire <[email protected] >.
23
23
*/
24
24
package org .opensolaris .opengrok .analysis ;
40
40
41
41
public class TextAnalyzerTest {
42
42
43
- private final String defaultEncoding = new InputStreamReader (new ByteArrayInputStream (new byte [0 ])).getEncoding ();
44
43
private String encoding ;
45
44
private String contents ;
46
45
@@ -53,23 +52,11 @@ public InputStream getStream() throws IOException {
53
52
};
54
53
}
55
54
56
- @ Test
57
- public void defaultEncoding () throws IOException {
58
- new TestableTextAnalyzer ().analyze (new Document (),
59
- getStreamSource ("hello" .getBytes ()), null );
60
-
61
- assertEquals (defaultEncoding , encoding );
62
-
63
- assertEquals ("hello" , contents );
64
- }
65
-
66
55
@ Test
67
56
public void resetsStreamOnShortInput () throws IOException {
68
57
new TestableTextAnalyzer ().analyze (new Document (),
69
58
getStreamSource ("hi" .getBytes ()), null );
70
59
71
- assertEquals (defaultEncoding , encoding );
72
-
73
60
assertEquals ("hi" , contents );
74
61
}
75
62
You can’t perform that action at this time.
0 commit comments