File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
wls-exporter-core/src/test/java/com/oracle/wls/exporter Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 55
66import java .io .ByteArrayInputStream ;
77import java .io .IOException ;
8- import java .nio .file .Files ;
9- import java .nio .file .Paths ;
108
119import com .google .gson .JsonObject ;
1210import com .oracle .wls .exporter .domain .ExporterConfig ;
1311import com .oracle .wls .exporter .domain .MBeanSelector ;
1412
1513import static com .google .gson .JsonParser .parseString ;
1614import static com .oracle .wls .exporter .DemoInputs .RESPONSE ;
15+ import static com .oracle .wls .exporter .DemoInputs .YAML_STRING3 ;
1716import static com .oracle .wls .exporter .DemoInputs .compressedJsonForm ;
1817
1918/**
2221public class YamlDemo {
2322
2423 public static void main (String ... args ) throws IOException {
25- String yamlString = String .join ("\n " , Files .readAllLines (Paths .get ("/Users/rgold/Desktop/mohit.yml" )));
26- // String yamlString = YAML_STRING3;
24+ String yamlString = YAML_STRING3 ;
2725 System .out .println ("The following configuration:\n " + yamlString );
2826 ExporterConfig exporterConfig = ExporterConfig .loadConfig (new ByteArrayInputStream (yamlString .getBytes ()));
2927
Original file line number Diff line number Diff line change 4646 <artifactId >wls-exporter-core</artifactId >
4747 <version >${project.version} </version >
4848 </dependency >
49+ <dependency >
50+ <groupId >org.apache.httpcomponents</groupId >
51+ <artifactId >httpclient</artifactId >
52+ </dependency >
4953 <dependency >
5054 <groupId >org.junit.jupiter</groupId >
5155 <artifactId >junit-jupiter</artifactId >
You can’t perform that action at this time.
0 commit comments