Monitor monitor = monitorFactory.createMonitor();
Problem problem = null;
problem = new ProblemImpl(this.getClass().getName(),
"tuscany-monitor-test-messages",
Severity.WARNING,
dummyModelObject,
"MESSAGE1" );
monitor.problem(problem);
String param = "Some Parameter";
problem = new ProblemImpl(this.getClass().getName(),
"tuscany-monitor-test-messages",
Severity.WARNING,
dummyModelObject,
"MESSAGE2",
param);
monitor.problem(problem);
problem = new ProblemImpl(this.getClass().getName(),
"tuscany-monitor-test-messages",
Severity.WARNING,
dummyModelObject,
"MESSAGE3",
8,
9,
4);
monitor.problem(problem);
Exception ex = new IllegalStateException("TEST_MESSAGE");
problem = new ProblemImpl(this.getClass().getName(),
"tuscany-monitor-test-messages",
Severity.ERROR,
dummyModelObject,
"MESSAGE4",
ex);