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 5
5
6
6
import java .io .ByteArrayInputStream ;
7
7
import java .io .IOException ;
8
- import java .nio .file .Files ;
9
- import java .nio .file .Paths ;
10
8
11
9
import com .google .gson .JsonObject ;
12
10
import com .oracle .wls .exporter .domain .ExporterConfig ;
13
11
import com .oracle .wls .exporter .domain .MBeanSelector ;
14
12
15
13
import static com .google .gson .JsonParser .parseString ;
16
14
import static com .oracle .wls .exporter .DemoInputs .RESPONSE ;
15
+ import static com .oracle .wls .exporter .DemoInputs .YAML_STRING3 ;
17
16
import static com .oracle .wls .exporter .DemoInputs .compressedJsonForm ;
18
17
19
18
/**
22
21
public class YamlDemo {
23
22
24
23
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 ;
27
25
System .out .println ("The following configuration:\n " + yamlString );
28
26
ExporterConfig exporterConfig = ExporterConfig .loadConfig (new ByteArrayInputStream (yamlString .getBytes ()));
29
27
Original file line number Diff line number Diff line change 46
46
<artifactId >wls-exporter-core</artifactId >
47
47
<version >${project.version} </version >
48
48
</dependency >
49
+ <dependency >
50
+ <groupId >org.apache.httpcomponents</groupId >
51
+ <artifactId >httpclient</artifactId >
52
+ </dependency >
49
53
<dependency >
50
54
<groupId >org.junit.jupiter</groupId >
51
55
<artifactId >junit-jupiter</artifactId >
You can’t perform that action at this time.
0 commit comments