Skip to content

Commit

Permalink
UT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Viji committed Aug 1, 2024
1 parent 0de1b59 commit 7dc8a5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void TestComponentCreatorExe()

// Assert
// Check return with warning code 2
Assert.AreEqual(2, TestHelper.RunComponentCreatorExe(new string[] {
Assert.AreEqual(2 | 0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.BomFilePath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@
using CycloneDX.Models;
using Newtonsoft.Json;
using NUnit.Framework;
using System.Collections.Generic;
using System.IO;
using System.Net.Http.Headers;
using System.Net.Http;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using TestUtilities;
using LCT.APICommunications;
using LCT.APICommunications.Model;
using LCT.Common;
using Newtonsoft.Json.Linq;
using System.Linq;
using LCT.Common.Constants;

namespace SW360IntegrationTest.NPM
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
// Assert
// Check exit is normal
Assert.AreEqual(2, TestHelper.RunComponentCreatorExe(new string[] {
Assert.AreEqual(2 | 0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.BomFilePath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
Expand Down

0 comments on commit 7dc8a5d

Please sign in to comment.