-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server.tests: Add tests for querying arrows using a Time Graph DP
Signed-off-by: Bernd Hufmann <[email protected]>
- Loading branch information
Showing
4 changed files
with
323 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...mpass/incubator/trace/server/jersey/rest/core/tests/stubs/TgArrowsOutputResponseStub.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/********************************************************************** | ||
* Copyright (c) 2024 Ericsson | ||
* | ||
* All rights reserved. This program and the accompanying materials are | ||
* made available under the terms of the Eclipse Public License 2.0 which | ||
* accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
**********************************************************************/ | ||
package org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests.stubs; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* A stub class for the response to a time graph arrows' request. It contains | ||
* the generic response, as well as an {@link TimeGraphArrowStub} | ||
* | ||
* @author Bernd Hufmann | ||
*/ | ||
public class TgArrowsOutputResponseStub extends OutputResponseStub { | ||
|
||
private static final long serialVersionUID = -2103307674960234620L; | ||
private final List<TimeGraphArrowStub> fModel; | ||
|
||
/** | ||
* {@link JsonCreator} Constructor from json | ||
* | ||
* @param model | ||
* The model for this response | ||
* @param status | ||
* The status of the response | ||
* @param statusMessage | ||
* The custom status message of the response | ||
*/ | ||
public TgArrowsOutputResponseStub(@JsonProperty("model") List<TimeGraphArrowStub> model, | ||
@JsonProperty("status") String status, | ||
@JsonProperty("statusMessage") String statusMessage) { | ||
super(status, statusMessage); | ||
fModel = model; | ||
} | ||
|
||
/** | ||
* Get the model for this response | ||
* | ||
* @return The model for the response | ||
*/ | ||
public List<TimeGraphArrowStub> getModel() { | ||
return fModel; | ||
} | ||
|
||
} |
Oops, something went wrong.