@@ -70,7 +70,12 @@ public void testStringInspectionReturnsCustomInfoTypes() throws Exception {
70
70
"\" My phone number is (234) 456-7890 and my email address is [email protected] \" " ;
71
71
Inspect .main (
72
72
new String [] {
73
- "-s" ,
text ,
"-customDictionaries" ,
"[email protected] " ,
"-customRegexes" ,
"\\ (\\ d{3}\\ ) \\ d{3}-\\ d{4}"
73
+ "-s" ,
74
+ text ,
75
+ "-customDictionaries" ,
76
+
77
+ "-customRegexes" ,
78
+ "\\ (\\ d{3}\\ ) \\ d{3}-\\ d{4}"
74
79
});
75
80
String output = bout .toString ();
76
81
@@ -82,7 +87,7 @@ public void testStringInspectionReturnsCustomInfoTypes() throws Exception {
82
87
public void testTextFileInspectionReturnsInfoTypes () throws Exception {
83
88
Inspect .main (
84
89
new String [] {
85
- "-f" , "src/test/resources/test.txt" , "-infoTypes" , "PHONE_NUMBER" , "EMAIL_ADDRESS"
90
+ "-f" , "src/test/resources/test.txt" , "-infoTypes" , "PHONE_NUMBER" , "EMAIL_ADDRESS"
86
91
});
87
92
String output = bout .toString ();
88
93
assertThat (output , containsString ("PHONE_NUMBER" ));
@@ -93,12 +98,12 @@ public void testTextFileInspectionReturnsInfoTypes() throws Exception {
93
98
public void testTextFileInspectionReturnsCustomInfoTypes () throws Exception {
94
99
Inspect .main (
95
100
new String [] {
96
- "-f" ,
97
- "src/test/resources/test.txt" ,
98
- "-customDictionaries" ,
99
-
100
- "-customRegexes" ,
101
- "\\ (\\ d{3}\\ ) \\ d{3}-\\ d{4}"
101
+ "-f" ,
102
+ "src/test/resources/test.txt" ,
103
+ "-customDictionaries" ,
104
+
105
+ "-customRegexes" ,
106
+ "\\ (\\ d{3}\\ ) \\ d{3}-\\ d{4}"
102
107
});
103
108
String output = bout .toString ();
104
109
assertThat (output , containsString ("CUSTOM_DICTIONARY_0" ));
0 commit comments