File tree Expand file tree Collapse file tree 13 files changed +355
-0
lines changed
sqldev/src/main/java/org/utplsql/sqldev/model/runner Expand file tree Collapse file tree 13 files changed +355
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+ import org.utplsql.sqldev.model.AbstractModel
20+
21+ @Accessors
22+ class Counter extends AbstractModel {
23+ Integer disabled
24+ Integer success
25+ Integer failure
26+ Integer error
27+ Integer warning
28+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+ import org.utplsql.sqldev.model.AbstractModel
20+
21+ @Accessors
22+ class Expectation extends AbstractModel {
23+ String description
24+ String message
25+ String caller
26+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+ import org.utplsql.sqldev.model.AbstractModel
20+
21+ @Accessors
22+ abstract class Item extends AbstractModel {
23+ String id
24+ String startTime
25+ String endTime
26+ Double executionTime
27+ Counter counter
28+ String errorStack
29+ String serverOutput
30+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+
20+ @Accessors
21+ abstract class PostEvent extends RealtimeReporterEvent {
22+ String startTime
23+ String endTime
24+ Double executionTime
25+ Counter counter
26+ String errorStack
27+ String serverOutput
28+
29+ new () {
30+ counter = new Counter
31+ }
32+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+
20+ @Accessors
21+ class PostRunEvent extends PostEvent {
22+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+
20+ @Accessors
21+ class PostSuiteEvent extends PostEvent {
22+ String id
23+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import java.util.ArrayList
19+ import java.util.List
20+ import org.eclipse.xtend.lib.annotations.Accessors
21+
22+ @Accessors
23+ class PostTestEvent extends PostEvent {
24+ String id
25+ Integer testNumber
26+ Integer totalNumberOfTests
27+ List<Expectation > failedExpectations
28+
29+ new () {
30+ failedExpectations = new ArrayList<Expectation >
31+ }
32+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import java.util.ArrayList
19+ import java.util.List
20+ import org.eclipse.xtend.lib.annotations.Accessors
21+
22+ @Accessors
23+ class PreRunEvent extends RealtimeReporterEvent {
24+ List<Item > items
25+ Integer totalNumberOfTests
26+
27+ new () {
28+ items = new ArrayList<Item >
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+
20+ @Accessors
21+ class PreSuiteEvent extends RealtimeReporterEvent {
22+ String id
23+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org.utplsql.sqldev.model.runner
17+
18+ import org.eclipse.xtend.lib.annotations.Accessors
19+
20+ @Accessors
21+ class PreTestEvent extends RealtimeReporterEvent {
22+ String id
23+ Integer testNumber
24+ Integer totalNumberOfTests
25+ }
You can’t perform that action at this time.
0 commit comments