Skip to content

Commit

Permalink
Update unit tests references
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
  • Loading branch information
flo-dup committed Nov 25, 2022
1 parent aac4dda commit 818f7a7
Show file tree
Hide file tree
Showing 35 changed files with 2,703 additions and 2,703 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public class EdgeMetadata extends AbstractMetadataItem {
private static final String NODE1_ATTRIBUTE = "node1";
private static final String NODE2_ATTRIBUTE = "node2";

private final String node1;
private final String node2;
private final String node1DiagramId;
private final String node2DiagramId;

public EdgeMetadata(Identifiable identifiable, String node1, String node2) {
public EdgeMetadata(Identifiable identifiable, String node1DiagramId, String node2DiagramId) {
super(identifiable);
this.node1 = node1;
this.node2 = node2;
this.node1DiagramId = node1DiagramId;
this.node2DiagramId = node2DiagramId;
}

@Override
Expand All @@ -38,8 +38,8 @@ String getElementName() {
@Override
void write(DiagramMetadata.WritingContext ctx) throws XMLStreamException {
super.write(ctx);
ctx.writer.writeAttribute(NODE1_ATTRIBUTE, node1);
ctx.writer.writeAttribute(NODE2_ATTRIBUTE, node2);
ctx.writer.writeAttribute(NODE1_ATTRIBUTE, node1DiagramId);
ctx.writer.writeAttribute(NODE2_ATTRIBUTE, node2DiagramId);
}

static class Reader implements MetadataItemReader<EdgeMetadata> {
Expand Down
14 changes: 7 additions & 7 deletions network-area-diagram/src/test/resources/3wt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions network-area-diagram/src/test/resources/3wt_disconnected.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions network-area-diagram/src/test/resources/3wt_partial.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 818f7a7

Please sign in to comment.