01: package org.bouncycastle.util.encoders.test;
02:
03: import org.bouncycastle.util.encoders.HexEncoder;
04:
05: public class HexTest extends AbstractCoderTest {
06: public HexTest(String name) {
07: super (name);
08: }
09:
10: protected void setUp() {
11: super .setUp();
12: enc = new HexEncoder();
13: }
14:
15: protected char paddingChar() {
16: return 0;
17: }
18:
19: protected boolean isEncodedChar(char c) {
20: if ('A' <= c && c <= 'F') {
21: return true;
22: }
23: if ('a' <= c && c <= 'f') {
24: return true;
25: }
26: if ('0' <= c && c <= '9') {
27: return true;
28: }
29: return false;
30: }
31:
32: }
|