Skip to content

Commit

Permalink
Added ports to some software types
Browse files Browse the repository at this point in the history
  • Loading branch information
arminzavada committed Nov 4, 2024
1 parent e57b62d commit 6be0e99
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions models/software-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
},
{
"name": "YoloV8",
"description": "Object detection framework version 8"
"description": "Object detection framework version 8",
"port": 233
},
{
"name": "OpenCV",
"description": "Open-source computer vision library"
"description": "Open-source computer vision library",
"port": 23321
},
{
"name": "YoloV10",
Expand All @@ -25,7 +27,8 @@
"dependencies": [
"OpenCV",
"MQTTBroker"
]
],
"port": 8008
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ void testOpenCVGetDescription() {
@DisplayName("OpenCV should return correct port")
void testOpenCVGetPort() {
var openCV = new OpenCV();
Assertions.assertEquals(-1, openCV.getPort(),
"Expected OpenCV's getPort() to return -1 as no port is specified");
Assertions.assertEquals(23321, openCV.getPort(),
"Expected OpenCV's getPort() to return 23321");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ void testOpenHABGetDescription() {
@DisplayName("OpenHAB should return correct port")
void testOpenHABGetPort() {
var openHAB = new OpenHAB();
Assertions.assertEquals(-1, openHAB.getPort(),
"Expected OpenHAB's getPort() to return -1 as no port is specified");
Assertions.assertEquals(8008, openHAB.getPort(),
"Expected OpenHAB's getPort() to return 8008");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ void testYoloV8GetDescription() {
@DisplayName("YoloV8 should return correct port")
void testYoloV8GetPort() {
var yoloV8 = new YoloV8();
Assertions.assertEquals(-1, yoloV8.getPort(),
"Expected YoloV8's getPort() to return -1 as no port is specified");
Assertions.assertEquals(233, yoloV8.getPort(),
"Expected YoloV8's getPort() to return 233");
}

@Test
Expand Down

0 comments on commit 6be0e99

Please sign in to comment.