diff options
author | 2018-01-31 17:19:00 +0200 | |
---|---|---|
committer | 2018-01-31 17:19:00 +0200 | |
commit | 1cfb08779ea0e00be69e072a940b3063e049fe6b (patch) | |
tree | 6602a900387c8393ed0dcd81c0539381632903c6 /vid-app-common/src/test/java/org/openecomp | |
parent | 2f20b001b9243e0f8b44aecc768ec265fd538732 (diff) |
org.onap migration
Change-Id: I52f0b2851f2c765752b6d21f49b32136d7d72a3d
Issue-ID: VID-86
Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp')
88 files changed, 0 insertions, 7142 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtilTest.java b/vid-app-common/src/test/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtilTest.java deleted file mode 100644 index f72a2825..00000000 --- a/vid-app-common/src/test/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtilTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openecomp.aai.util; - -import org.junit.Test; - -public class JettyObfuscationConversionCommandLineUtilTest { - - private JettyObfuscationConversionCommandLineUtil createTestSubject() { - return new JettyObfuscationConversionCommandLineUtil(); - } - - - @Test - public void testMain() throws Exception { - String[] args = new String[] { "" }; - - // default test - JettyObfuscationConversionCommandLineUtil.main(args); - } - - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/aai/util/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/aai/util/TestSuite.java deleted file mode 100644 index f7d57ad7..00000000 --- a/vid-app-common/src/test/java/org/openecomp/aai/util/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.aai.util; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ JettyObfuscationConversionCommandLineUtilTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/FirstClass.java b/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/FirstClass.java deleted file mode 100755 index ed06994a..00000000 --- a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/FirstClass.java +++ /dev/null @@ -1,606 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.ecomp.vid.selenium;
-
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.AfterSuite;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.BeforeSuite;
-import org.testng.annotations.BeforeTest;
-import org.testng.annotations.Test;
-
-
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.firefox.FirefoxDriver;
-import org.openqa.selenium.ie.InternetExplorerDriver;
-import org.openqa.selenium.support.ui.Select;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.List;
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-import org.apache.log4j.Logger;
-import org.testng.Assert;
-import org.testng.asserts.*;
-
-/**
- * The Class FirstClass.
- */
-public class FirstClass {
-
- /** The login button. */
- WebElement loginButton;
-
- /** The eg. */
- String eg;
-
- /** The login. */
- WebElement login;
-
- /** The pwd. */
- WebElement pwd;
-
- /** The log. */
- Logger log;
-
- /** The errormessage. */
- WebElement errormessage;
-
-
- /** The driver. */
- WebDriver driver=new FirefoxDriver();
-
-
-
- /** The config prop. */
- private final Properties configProp = new Properties();
-
-
- /**
- * Instantiates a new first class.
- */
- private FirstClass() {
- // TODO Auto-generated constructor stub
- //
- try{
- // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties");
- //FileInputStream input1 = new FileInputStream("objectmap.properties");
-
- InputStream input =new FileInputStream("objectconfig.properties");
- System.out.println("Read all properties from file");
- configProp.load(input);
- System.out.println("Read all properties from file completed");
- }
- catch(IOException e) {
-
- e.printStackTrace();
- }
- }
-
-
- /*
-
-
- @BeforeClass
- public void setUp() {
- System.out.println("*******************");
- System.out.println("launching IE browser");
- System.setProperty("webdriver.ie.driver", driverPath+"IEDriverServer.exe");
- driver = new InternetExplorerDriver();
- driver.findElement(By.className());
- driver.manage().window().maximize();
-
-
- login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']"));
- pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']"));
- loginButton = driver.findElement(By.id("loginBtn"));
- }
-
-
- */
- /**
- * Sets the up.
- */
- // TODO Auto-generated method stub
- @BeforeClass
- public void setUp()
- {
-
-
- //WebDriver driver=new FirefoxDriver();
-
- log = Logger.getLogger(FirstClass.class.getName());
-
-
-
- // Get url
- driver.get(configProp.getProperty("baseURL"));
- driver.manage().window().maximize();
-
-
- login = driver.findElement(By.xpath(configProp.getProperty("login")));
-
- pwd = driver.findElement(By.xpath(configProp.getProperty("pwd")));
- loginButton = driver.findElement(By.id(configProp.getProperty("loginButton")));
- }
-
-
- /**
- * Empty username password.
- */
- @Test(priority=1)
- public void emptyUsernamePassword()
- {
-
-
- //User Name and Password field is empty
- log.info("-----VID-11 TC-8----Username and password empty");
- loginButton.click();
- errormessage=driver.findElement(By.xpath("//*[@id='errorInfo']/span"));
- String errmsg= errormessage.getText();
- //System.out.println("Error message is"+errmsg);
- //String expected = "Invaild username or password, Please try again";
-
- //Assert.assertEquals(errmsg,expected);
-
- Boolean str = driver.getPageSource().contains("Invalid username or password, Please try again");
- System.out.println(driver.getPageSource().contains("Invalid username or password, Please try again"));
-
- if(str==true)
- {
- log.info("Error message validated");
- log.info("VID-11 TC-8 PASSED");
-
- }else
- log.error("Failed validation");
-
- }
-
-
-
- /**
- * Invalid user name.
- */
- @Test(priority=2)
- public void invalidUserName()
- {
-
- log.info("-----VID-11 TC-6----Invalid Username and Valid Password");
-
-
- login.sendKeys("xxx");
- pwd.sendKeys("abc123");
- loginButton.click();
- try {
- Thread.sleep(5000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- String errmsg= errormessage.getText();
- String expected = "Invalid username or password, Please try again";
- Assert.assertEquals(errmsg,expected);
- //Boolean str1 = driver.getPageSource().contains("Invalid username or password, Please try again");
- //System.out.print(str1);
-
- log.info("VID-11 TC-6 PASSED");
-
- }
-
-
- /**
- * Invalid password.
- */
- @Test(priority=3)
- public void invalidPassword()
- {
- log.info("-----VID-11 TC-7----Valid Username and Invalid Password");
- // Valid user name and Invalid password.
- login.clear();
- pwd.clear();
- login.sendKeys("testuser");
- pwd.sendKeys("xxx");
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
-
- String errmsg= errormessage.getText();
- String expected = "Invalid username or password, Please try again";
- Assert.assertEquals(errmsg,expected);
-
- //Boolean str2 = driver.getPageSource().contains("Invaild username or password, Please try again");
- //System.out.print(str2);
-
- log.info("VID-11 TC-7 PASSED");
- }
-
-
- /**
- * Login successful.
- */
- @Test(priority=4)
- public void loginSuccessful()
- {
- log.info("-----VID-11 TC-1----Valid Username and Valid Password");
- //Login with valid user name and password.
- login.clear();
- login.sendKeys("su");
- pwd.clear();
- pwd.sendKeys("fusion");
-
-
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
- try {
- Thread.sleep(6000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances"));
- log.info("VID-11 TC-1 PASSED");
-
- }
-
-
- /**
- * Verify home page elements left pane.
- */
- @Test(priority=5)
- public void verifyHomePageElementsLeftPane()
-
- {
-
-
- log.info("VID-10 TC 1 ");
- //VID Home
- log.info("VID 11 TC-2");
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[1]/a/span")).isDisplayed();
- //Create New Service Instance
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[2]/a/span")).isDisplayed();
-
- //Browse Service Type
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[3]/a/span")).isDisplayed();
- //View Log
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[4]/a/span")).isDisplayed();
-
- //Profile
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[5]/a/span")).isDisplayed();
- //Admin
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).isDisplayed();
- //Logout
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a/span")).isDisplayed();
-
- //Infrastructure Subscriber Name
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[1]/div/label")).isDisplayed();
- //Infrastructure Subscriber Name Select Drop down
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")).isDisplayed();
- //Infrastructure Service Type
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[1]/div/label")).isDisplayed();
- //Infrastructure Service Type Select Drop down
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")).isDisplayed();
- //Submit button
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).isDisplayed();
-
- //Login Snippet Icon
- driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).isDisplayed();
-
-
- //String bodyText = driver.findElement(By.tagName("body")).getText();
- //Assert.assertTrue("Text not found!", bodyText.contains("Search Existing Service Instances"));
- //Assert.IsTrue(driver.getPageSource.Contains("Search Existing Service Instances"));
-
- log.info("VID-12 TC-1");
- Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances"));
- Assert.assertTrue(driver.getPageSource().contains("Please search by the Subscriber name or Service Type from below:"));
- log.info("VID-12 TC-1 PASSED");
- log.info("VID-10 TC 1 PASSED");
- log.info("VID-11 TC-2 PASSED");
- }
-
-
- /**
- * Disabled submit button.
- */
- @Test(priority=6)
- public void disabledSubmitButton()
- {
- log.info("VID-12 TC-13");
- //Assert submit button disabled.
- Assert.assertFalse(driver.findElement(By.xpath(configProp.getProperty("submitButton"))).isEnabled());
- log.info("VID-12 TC-13 PASSED");
-
- }
-
- /**
- * Default list box value.
- */
- @Test(priority=7)
- public void defaultListBoxValue()
- {
- log.info("VID-12 TC-2");
-
-
- //WebElement subscribername =driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"));
-
- Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown"))));
- Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown"))));
-
-
- WebElement ielement=iSelect.getFirstSelectedOption();
- WebElement oelement=oSelect.getFirstSelectedOption();
- String defaultsubscribername=oelement.getText();
- String defaultservicetype=ielement.getText();
-
- Assert.assertEquals(defaultsubscribername,"Select Subscriber Name");
- Assert.assertEquals(defaultservicetype,"Select Service Type");
-
-
-
-
- //Verify Select Subscriber Name isDisplayed.
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select/option[1]")).isSelected();
-
- //Verify Select Service Type isDisplayed.
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select/option[1]")).isSelected();
-
-
- log.info("VID-12 TC-2 PASSED");
-
- }
-
-
-
- /**
- * Select subscriber name drop down.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=8)
- public void selectSubscriberNameDropDown() throws InterruptedException
- {
- log.info("------------------VID-10 TC-2,VID-12 TC-11, VID-12 TC-9, VID 12 TC-10,VID-12 TC-6, VID 12 TC-5--------------------");
-
-
- driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")));
-
- driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown")));
- Thread.sleep(5000);
-
- //Infrastructure Subscriber Name
- Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown"))));
-
- List <WebElement> elementCount = oSelect.getOptions();
- log.info("Select Element Count of Service Name");
- System.out.println(elementCount.size());
-
-
- //Verifying getInfrastructureSubscribersList
- log.info("VID-29 TC-1");
- Assert.assertTrue(elementCount.size()>0);
- log.info("VID-29 TC-1 PASSED");
-
- oSelect.selectByIndex(2);
- String selectedOption = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))).getFirstSelectedOption().getText();
-
- System.out.println("Service Name selected is " +selectedOption);
- log.info("VID-10 TC-2 PASSED");
-
- //Submit button is clicked
- driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click();
-
-
- //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed();
- //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:"))
-
-
- //Verify whether the page header is displayed "Global Customer ID"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed();
- Assert.assertTrue(driver.getPageSource().contains("Global Customer ID"));
- Assert.assertTrue(driver.getPageSource().contains("Subscriber Name"));
- Assert.assertTrue(driver.getPageSource().contains("Service Type"));
- Assert.assertTrue(driver.getPageSource().contains("Service Instance ID"));
-
- log.info("VID-12 TC-5 PASSED");
- log.info("VID-12 TC-11 PASSED");
-
- WebElement serviceinstancetable =driver.findElement(By.xpath("//table[@class='tablesorter tablesorter-default ng-isolate-scope']"));
-
- List<WebElement> rows_table = serviceinstancetable.findElements(By.tagName("tr"));
- //To calculate no of rows In table.
- int rows_count = rows_table.size();
-
- //Loop will execute till the last row of table.
- for (int row=0; row<rows_count; row++){
- //To locate columns(cells) of that specific row.
- List<WebElement> Columns_row = rows_table.get(row).findElements(By.tagName("td"));
- //To calculate no of columns(cells) In that specific row.
- int columns_count = Columns_row.size();
- //System.out.println("Number of cells In Row "+row+" are "+columns_count);
-
- //Loop will execute till the last cell of that specific row.
- for (int column=0; column<columns_count; column++){
- //To retrieve text from that specific cell.
- String celtext = Columns_row.get(column).getText();
- //System.out.println("Cell Value Of row number "+row+" and column number "+column+" Is "+celtext);
-
-
-
- //log.info("Testing Get column and row value");
- List <WebElement> exx= rows_table.get(1).findElements(By.tagName("td"));
- eg=Columns_row.get(2).getText();
- // System.out.println("Cell value of row 1 and column 2 is" +eg);
- }
- }
-
-
-
-
- //Verify View/Edit isDisplayed and Click
-
- driver.findElement(By.xpath("//a[@alt='View/Edit']")).isDisplayed();
-
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/tbody/tr[1]/td[1]/div/a")).click();
-
- log.info("User clicked View/Edit");
-
- //Verify the Subscriber Name displayed.
- String header= driver.findElement(By.xpath("//h1[@class='heading1 ng-binding']")).getText();
- //System.out.println(header);
-
-
- if(header.contains(eg))
- {
- System.out.println("Header contains the subscriber name");
- }else
- System.out.println("Header does not contain the subscriber name");
-
-
-
- Assert.assertTrue(driver.getPageSource().contains("PerfTest Subscriber00020021"));
- log.info("VID-12 TC-6 PASSED");
-
-
-
- driver.navigate().back();
- //Cancel button isDisplayed
- driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).isDisplayed();
- log.info("VID-12 TC-9 PASSED");
-
- //Cancel button is clicked
- driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).click();
- log.info("Cancel button is clicked");
-
- //Verifying VID Home page is displayed
- Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances"));
- log.info("VID-12 TC-10 PASSED");
-
- }
-
-
- /**
- * Refresh subscriber name.
- */
- @Test(priority=9)
- public void refreshSubscriberName()
- {
- log.info("VID-10 TC-4");
-
-
- driver.findElement(By.xpath(configProp.getProperty("refreshButtonSubscriberName"))).isDisplayed();
-
- log.info("VID-10 TC-4 PASSED");
-
-
- }
-
-
- /**
- * Select subscriber type drop down.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=9)
- public void selectSubscriberTypeDropDown() throws InterruptedException
- {
- Thread.sleep(5000);
- log.info("------------------VID-10 TC-3, VID-12 TC-12,--------------------");
- //Infrastructure Subscriber Type
- Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown"))));
-
- List <WebElement> ielementCount = iSelect.getOptions();
- log.info("Select Element Count of Service type");
- System.out.println(ielementCount.size());
- iSelect.selectByIndex(1);
-
- log.info("VID-10 TC-3 PASSED");
-
-
- //Submit button is clicked
- driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click();
-
- //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed();
- //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:"))
- log.info("Page Header: Selected Subscriber's Service Instance Details");
-
-
- //Verify whether the page header is displayed "Global Customer ID"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed();
-
- //Assert.assertTrue(driver.getPageSource().contains("Global Customer ID"));
- log.info("Table is displayed");
-
- log.info("VID-12 TC-12 PASSED");
-
- }
-
-
-
- /**
- * Logout under profile.
- */
- @Test(priority=10)
- public void logoutUnderProfile()
- {
-
- log.info("-----------VID-11 TC-5---------------------");
- //driver.findElement(By.partialLinkText("Click here to login")).click();
- //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
-
- driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).click();
- driver.findElement(By.xpath(".//*[@id='reg-logout-div']/a")).click();
- //Validate that the user has logged out of VID. Displays "Portal"
- Assert.assertTrue(driver.getPageSource().contains("Portal"));
-
- log.info("VID-11 TC-5 PASSED");
-
- }
-
-
-
- /**
- * Tear down.
- */
- @AfterClass
- public void tearDown()
- {
- driver.close();
-
- }
-
-
-
- }
-
-
-
-
diff --git a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/LogOutLeftPane.java b/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/LogOutLeftPane.java deleted file mode 100755 index 55aed8fb..00000000 --- a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/LogOutLeftPane.java +++ /dev/null @@ -1,242 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.ecomp.vid.selenium;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.List;
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-
-import org.apache.log4j.Logger;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.firefox.FirefoxDriver;
-import org.openqa.selenium.support.ui.Select;
-import org.testng.Assert;
-import org.testng.annotations.BeforeTest;
-import org.testng.annotations.Test;
-
-/**
- * The Class LogOutLeftPane.
- */
-@Test(enabled=false)
-public class LogOutLeftPane {
-
- /** The login button. */
- WebElement loginButton;
-
- /** The login. */
- WebElement login;
-
- /** The pwd. */
- WebElement pwd;
-
- /** The log. */
- Logger log;
-
- /** The errormessage. */
- WebElement errormessage;
-
- /** The driver. */
- WebDriver driver=new FirefoxDriver();
-
-
- /** The config prop. */
- private final Properties configProp = new Properties();
-
-
- /**
- * Instantiates a new log out left pane.
- */
- private LogOutLeftPane() {
- // TODO Auto-generated constructor stub
- //
- try{
- // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties");
- //FileInputStream input1 = new FileInputStream("objectmap.properties");
-
- InputStream input =new FileInputStream("objectconfig.properties");
- System.out.println("Read all properties from file");
- configProp.load(input);
- System.out.println("Read all properties from file completed");
- }
- catch(IOException e) {
-
- e.printStackTrace();
- }
- }
-
-
-
-
- /**
- * Do before test.
- */
- // TODO Auto-generated method stub
- @BeforeTest
- public void doBeforeTest()
- {
- //WebDriver driver=new FirefoxDriver();
-
- log = Logger.getLogger(LogOutLeftPane.class.getName());
-
-
-
- // Get url
- driver.get("http://vid.onap.org:9080/vid/login_external.htm");
- driver.manage().window().maximize();
-
-
- login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']"));
- pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']"));
- loginButton = driver.findElement(By.id("loginBtn"));
- }
-
-
- /**
- * Expand collapse panel.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=1)
- public void expandCollapsePanel() throws InterruptedException
- {
-
-
-
- login.clear();
- login.sendKeys("su");
- pwd.clear();
- pwd.sendKeys("fusion");
- //driver.findElement(By.partialLinkText("Click here to login")).click();
- //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
-
- log.info("Clicking Profile link from left pane");
- Thread.sleep(3000);
- System.out.println("properties file details --->"+configProp.getProperty("profilelink"));
- driver.findElement(By.xpath(configProp.getProperty("profilelink"))).click();
- Thread.sleep(3000);
-
- //Verify whether the sub panel is displayed
- //To verify the following :Search import from webphone and Self
- driver.findElement(By.xpath(".//*[@id='panel4']")).isDisplayed();
- log.info("Expand and collapse passed for Profile link");
-
- //For Admin
- //Verify expand and collapse working for ADMIN
- log.info("Clicking Admin link from left pane");
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).click();
- //To verify the following: Roles, Roles Functions, Usages
- driver.findElement(By.xpath(".//*[@id='panel5']")).isDisplayed();
-
-
- log.info("Expand and collapse passed for ADMIN link");
-
- log.info("VID-11 TC-3 PASSED");
-
- }
-
-
- /**
- * Drop down list.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=2)
- public void dropDownList() throws InterruptedException
- {
- //VID-12 TC-3
- log.info("VID-12 TC-3");
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"));
-
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select"));
- Thread.sleep(5000);
-
- //Infrastructure Subscriber Name
- Select oSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")));
- Select iSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")));
-
- List <WebElement> elementCount = oSelect.getOptions();
- log.info("Subscriber Name Drop Down");
- System.out.println(elementCount.size());
- oSelect.selectByIndex(1);
- log.info("Subscriber name selected");
- //String selectedOption = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"))).getFirstSelectedOption().getText();
-
-
- List <WebElement> count = iSelect.getOptions();
- log.info("Subscriber type drop down");
- System.out.println(count.size());
- oSelect.selectByIndex(1);
- log.info("Subscriber type selected");
-
-
-
- //Submit button is clicked
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).click();
-
-
- //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed();
- log.info("VID-12 TC-3 PASSED");
- }
-
-
-
-
- /**
- * Logout left pane.
- */
- @Test(priority=3)
- public void logoutLeftPane()
- {
- //To Verify if the logout link redirects to Login page when clicked.
-
-
- /*log.info("----------------VID-11 TC-4----------------");
- login.clear();
- login.sendKeys("testuser");
- pwd.clear();
- pwd.sendKeys("abc123");
- //driver.findElement(By.partialLinkText("Click here to login")).click();
- //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);*/
- log.info("----------------VID-11 TC-4----------------");
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a")).click();
- //Validate that the user has logged out of VID. Displays "Portal"
- Assert.assertTrue(driver.getPageSource().contains("Portal"));
-
- log.info("VID 11 TC-4 PASSED");
-
- driver.close();
-
- }
-
-}
diff --git a/vid-app-common/src/test/java/org/openecomp/fusion/core/MockApplicationContextTestSuite.java b/vid-app-common/src/test/java/org/openecomp/fusion/core/MockApplicationContextTestSuite.java deleted file mode 100755 index 2f5828b6..00000000 --- a/vid-app-common/src/test/java/org/openecomp/fusion/core/MockApplicationContextTestSuite.java +++ /dev/null @@ -1,177 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.fusion.core;
-
-import java.io.IOException;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Profile;
-import org.springframework.test.context.ActiveProfiles;
-import org.springframework.test.context.ContextConfiguration;
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
-import org.springframework.test.context.web.AnnotationConfigWebContextLoader;
-import org.springframework.test.context.web.WebAppConfiguration;
-import org.springframework.test.web.servlet.MockMvc;
-import org.springframework.test.web.servlet.setup.MockMvcBuilders;
-import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.testng.annotations.Test;
-import org.openecomp.portalsdk.core.conf.AppConfig;
-import org.openecomp.portalsdk.core.objectcache.AbstractCacheManager;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.portalsdk.core.util.CacheManager;
-
-/**
- *
- *
- *
- * In order to write a unit test,
- * 1. inherit this class - See SanityTest.java
- * 2. place the "war" folder on your test class's classpath
- * 3. run the test with the following VM argument; This is important because when starting the application from Container, the System Properties file (SystemProperties.java) can have the direct path
- * but, when running from the Mock Junit container, the path should be prefixed with "classpath" to enable the mock container to search for the file in the classpath
- * -Dcontainer.classpath="classpath:"
- *
- */
-
-@RunWith(SpringJUnit4ClassRunner.class)
-@WebAppConfiguration
-@ContextConfiguration(loader = AnnotationConfigWebContextLoader.class, classes = {MockAppConfig.class})
-@ActiveProfiles(value="test")
-@Test(enabled=false)
-public class MockApplicationContextTestSuite {
-
- /** The wac. */
- @Autowired
- public WebApplicationContext wac;
-
- /** The mock mvc. */
- private MockMvc mockMvc;
-
- /**
- * Setup.
- */
- @Before
- public void setup() {
- if(mockMvc == null) {
- this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
-
- }
- }
-
- /**
- * Gets the bean.
- *
- * @param name the name
- * @return the bean
- */
- public Object getBean(String name) {
- return this.wac.getBean(name);
- }
-
-
- /**
- * Gets the mock mvc.
- *
- * @return the mock mvc
- */
- public MockMvc getMockMvc() {
- return mockMvc;
- }
-
- /**
- * Sets the mock mvc.
- *
- * @param mockMvc the new mock mvc
- */
- public void setMockMvc(MockMvc mockMvc) {
- this.mockMvc = mockMvc;
- }
-
- /**
- * Gets the web application context.
- *
- * @return the web application context
- */
- public WebApplicationContext getWebApplicationContext() {
- return wac;
- }
-
-
-
-
-}
-
-
- @Configuration
- @ComponentScan(basePackages = "org.openecomp",
- excludeFilters = {
- // the following source configurations should not be scanned; instead of using Exclusion filter, we can use the @Profile annotation to exclude them
- // see AppConfig class
- //@ComponentScan.Filter(type = FilterType.REGEX, pattern = "org.openecomp.portalsdk.core.*AppConfig*")//,
- //@ComponentScan.Filter(type = FilterType.REGEX, pattern = org.openecomp.*.*AppConfig*")
- }
- )
- @Profile("test")
- class MockAppConfig extends AppConfig {
-
- @Bean
- public SystemProperties systemProperties(){
- return new MockSystemProperties();
- }
-
- @Bean
- public AbstractCacheManager cacheManager() {
- return new CacheManager() {
-
- public void configure() throws IOException {
-
- }
- };
- }
-
- protected String[] tileDefinitions() {
- return new String[] {"classpath:/WEB-INF/fusion/defs/definitions.xml", "classpath:/WEB-INF/defs/definitions.xml"};
- }
-
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- //registry.addInterceptor(new SessionTimeoutInterceptor()).excludePathPatterns(getExcludeUrlPathsForSessionTimeout());
- //registry.addInterceptor(resourceInterceptor());
- }
-
- public static class MockSystemProperties extends SystemProperties {
-
- public MockSystemProperties() {
- }
-
- }
-
- }
-
-
-
-
diff --git a/vid-app-common/src/test/java/org/openecomp/fusionapp/controller/NetMapTest.java b/vid-app-common/src/test/java/org/openecomp/fusionapp/controller/NetMapTest.java deleted file mode 100755 index 0078cc6e..00000000 --- a/vid-app-common/src/test/java/org/openecomp/fusionapp/controller/NetMapTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.fusionapp.controller;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.test.web.servlet.ResultActions;
-import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
-
-import org.openecomp.fusion.core.MockApplicationContextTestSuite;
-
-/**
- * The Class NetMapTest.
- */
-
-public class NetMapTest extends MockApplicationContextTestSuite {
-
- /**
- * Test get net map.
- *
- * @throws Exception the exception
- */
-// @Test
- public void testGetNetMap() throws Exception {
- ResultActions ra =getMockMvc().perform(MockMvcRequestBuilders.get("/net_map"));
- //Assert.assertEquals(UrlAccessRestrictedException.class,ra.andReturn().getResolvedException().getClass());
- Assert.assertEquals("net_map_int",ra.andReturn().getModelAndView().getModel().get("frame_int"));
- }
-
-
-}
diff --git a/vid-app-common/src/test/java/org/openecomp/fusionapp/service/ProfileServiceTest.java b/vid-app-common/src/test/java/org/openecomp/fusionapp/service/ProfileServiceTest.java deleted file mode 100755 index f8afbf8d..00000000 --- a/vid-app-common/src/test/java/org/openecomp/fusionapp/service/ProfileServiceTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.fusionapp.service;
-
-import java.util.List;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import org.openecomp.fusion.core.MockApplicationContextTestSuite;
-import org.openecomp.portalsdk.core.domain.Profile;
-import org.openecomp.portalsdk.core.domain.User;
-import org.openecomp.portalsdk.core.service.ProfileService;
-import org.openecomp.portalsdk.core.service.UserProfileService;
-
-
-/**
- * The Class ProfileServiceTest.
- */
-
-public class ProfileServiceTest extends MockApplicationContextTestSuite {
-
- /** The service. */
- @Autowired
- ProfileService service;
-
- /** The user profile service. */
- @Autowired
- UserProfileService userProfileService;
-
- /**
- * Test find all.
- */
- //@Test
- public void testFindAll() {
- try {
- List<Profile> profiles = service.findAll();
- Assert.assertTrue(profiles.size() > 0);
-
- }
- catch (Exception e) {
- // TODO: handle exception
- }
- }
-
- /**
- * Test find all active.
- */
-// @Test
- public void testFindAllActive() {
-
- List<User> users = userProfileService.findAllActive();
- List<User> activeUsers = userProfileService.findAllActive();
- Assert.assertTrue(users.size() - activeUsers.size() >= 0);
- }
-}
diff --git a/vid-app-common/src/test/java/org/openecomp/src/main/java/org/vid/dao/FnAppDoaImplTest.java b/vid-app-common/src/test/java/org/openecomp/src/main/java/org/vid/dao/FnAppDoaImplTest.java deleted file mode 100755 index 3ac91c22..00000000 --- a/vid-app-common/src/test/java/org/openecomp/src/main/java/org/vid/dao/FnAppDoaImplTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.src.main.java.org.vid.dao;
-
-import java.io.IOException;
-import java.sql.SQLException;
-
-import org.junit.Test;
-
-import org.openecomp.vid.dao.FnAppDoaImpl;
-
-public class FnAppDoaImplTest {
-
- //@Test
- public void testGetconnection() throws ClassNotFoundException, IOException, SQLException{
- FnAppDoaImpl impl=new FnAppDoaImpl();
- impl.getConnection(null,null,null, null);
-
- }
-
- //@Test
- public void testProfileCount() throws ClassNotFoundException, IOException, SQLException{
- FnAppDoaImpl impl=new FnAppDoaImpl();
- impl.getProfileCount(null,null,null, null);
- }
-
-}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java b/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java deleted file mode 100644 index 9d493008..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.openecomp.vid; - -import java.util.Map; - -import org.junit.Test; - - -public class RelatedToTest { - - private RelatedTo createTestSubject() { - return new RelatedTo(); - } - - - @Test - public void testGetAdditionalProperties() throws Exception { - RelatedTo testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - - @Test - public void testSetAdditionalProperty() throws Exception { - RelatedTo testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java deleted file mode 100644 index 6e8b1960..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RelatedToTest.class, org.openecomp.vid.aai.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/AaiGetVnfResponseTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/AaiGetVnfResponseTest.java deleted file mode 100644 index b959709d..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/AaiGetVnfResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.aai; - -import java.util.Map; - -import org.junit.Test; - -public class AaiGetVnfResponseTest { - - private AaiGetVnfResponse createTestSubject() { - return new AaiGetVnfResponse(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - AaiGetVnfResponse testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - AaiGetVnfResponse testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/ServicePropertiesTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/ServicePropertiesTest.java deleted file mode 100644 index d3c50aff..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/ServicePropertiesTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.aai; - -import java.util.Map; - -import org.junit.Test; - -public class ServicePropertiesTest { - - private ServiceProperties createTestSubject() { - return new ServiceProperties(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - ServiceProperties testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - ServiceProperties testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberAaiResponseTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberAaiResponseTest.java deleted file mode 100644 index 26954011..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberAaiResponseTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openecomp.vid.aai; - -import org.junit.Test; -import org.openecomp.vid.model.SubscriberList; - -public class SubscriberAaiResponseTest { - - private SubscriberAaiResponse createTestSubject() { - return new SubscriberAaiResponse(new SubscriberList(), "", 0); - } - - - @Test - public void testGetSubscriberList() throws Exception { - SubscriberAaiResponse testSubject; - SubscriberList result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSubscriberList(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberWithFilterTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberWithFilterTest.java deleted file mode 100644 index 7fca7c99..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberWithFilterTest.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.openecomp.vid.aai; - -import org.junit.Test; - -public class SubscriberWithFilterTest { - - private SubscriberWithFilter createTestSubject() { - return new SubscriberWithFilter(); - } - - @Test - public void testGetIsPermitted() throws Exception { - SubscriberWithFilter testSubject; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIsPermitted(); - } - - @Test - public void testSetIsPermitted() throws Exception { - SubscriberWithFilter testSubject; - boolean isPermitted = false; - - // default test - testSubject = createTestSubject(); - testSubject.setIsPermitted(isPermitted); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/TestSuite.java deleted file mode 100644 index 0629d78c..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.aai; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ SubscriberAaiResponseTest.class, AaiGetVnfResponseTest.class, ServicePropertiesTest.class, - SubscriberWithFilterTest.class, VnfResultTest.class, org.openecomp.vid.aai.model.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/VnfResultTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/VnfResultTest.java deleted file mode 100644 index 6efa05aa..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/VnfResultTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.aai; - -import java.util.Map; - -import org.junit.Test; - -public class VnfResultTest { - - private VnfResult createTestSubject() { - return new VnfResult(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - VnfResult testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - VnfResult testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java deleted file mode 100644 index 08a87173..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.aai.model; - -import org.junit.Test; - - -public class RelatedToPropertyTest { - - private RelatedToProperty createTestSubject() { - return new RelatedToProperty(); - } - - - @Test - public void testGetPropertyKey() throws Exception { - RelatedToProperty testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPropertyKey(); - } - - - @Test - public void testSetPropertyKey() throws Exception { - RelatedToProperty testSubject; - String propertyKey = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPropertyKey(propertyKey); - } - - - @Test - public void testGetPropertyValue() throws Exception { - RelatedToProperty testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPropertyValue(); - } - - - @Test - public void testSetPropertyValue() throws Exception { - RelatedToProperty testSubject; - String propertyValue = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPropertyValue(propertyValue); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java deleted file mode 100644 index 4df27ccd..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.aai.model; - -import org.junit.Test; - - -public class RelationshipDataTest { - - private RelationshipData createTestSubject() { - return new RelationshipData(); - } - - - @Test - public void testGetRelationshipKey() throws Exception { - RelationshipData testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelationshipKey(); - } - - - @Test - public void testSetRelationshipKey() throws Exception { - RelationshipData testSubject; - String relationshipKey = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRelationshipKey(relationshipKey); - } - - - @Test - public void testGetRelationshipValue() throws Exception { - RelationshipData testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelationshipValue(); - } - - - @Test - public void testSetRelationshipValue() throws Exception { - RelationshipData testSubject; - String relationshipValue = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRelationshipValue(relationshipValue); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipTest.java deleted file mode 100644 index 4f5e3353..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.openecomp.vid.aai.model; - -import java.util.List; - -import org.junit.Test; - - -public class RelationshipTest { - - private Relationship createTestSubject() { - return new Relationship(); - } - - - @Test - public void testGetRelatedTo() throws Exception { - Relationship testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelatedTo(); - } - - - @Test - public void testSetRelatedTo() throws Exception { - Relationship testSubject; - String relatedTo = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRelatedTo(relatedTo); - } - - - @Test - public void testGetRelatedLink() throws Exception { - Relationship testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelatedLink(); - } - - - @Test - public void testSetRelatedLink() throws Exception { - Relationship testSubject; - String relatedLink = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRelatedLink(relatedLink); - } - - - @Test - public void testGetRelationDataList() throws Exception { - Relationship testSubject; - List<RelationshipData> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelationDataList(); - } - - - @Test - public void testSetRelationDataList() throws Exception { - Relationship testSubject; - List<RelationshipData> relationDataList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRelationDataList(relationDataList); - } - - - @Test - public void testGetRelatedToPropertyList() throws Exception { - Relationship testSubject; - List<RelatedToProperty> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelatedToPropertyList(); - } - - - @Test - public void testSetRelatedToPropertyList() throws Exception { - Relationship testSubject; - List<RelatedToProperty> relatedToPropertyList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRelatedToPropertyList(relatedToPropertyList); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/ServiceRelationshipsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/ServiceRelationshipsTest.java deleted file mode 100644 index c67e3f8d..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/ServiceRelationshipsTest.java +++ /dev/null @@ -1,165 +0,0 @@ -package org.openecomp.vid.aai.model; - -import org.junit.Test; - - -public class ServiceRelationshipsTest { - - private ServiceRelationships createTestSubject() { - return new ServiceRelationships(); - } - - - @Test - public void testGetServiceInstanceId() throws Exception { - ServiceRelationships testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getServiceInstanceId(); - } - - - @Test - public void testSetServiceInstanceId() throws Exception { - ServiceRelationships testSubject; - String serviceInstanceId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setServiceInstanceId(serviceInstanceId); - } - - - @Test - public void testGetServiceInstanceName() throws Exception { - ServiceRelationships testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getServiceInstanceName(); - } - - - @Test - public void testSetServiceInstanceName() throws Exception { - ServiceRelationships testSubject; - String serviceInstanceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setServiceInstanceName(serviceInstanceName); - } - - - @Test - public void testGetModelInvariantId() throws Exception { - ServiceRelationships testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelInvariantId(); - } - - - @Test - public void testSetModelInvariantId() throws Exception { - ServiceRelationships testSubject; - String modelInvariantId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setModelInvariantId(modelInvariantId); - } - - - @Test - public void testGetModelVersionId() throws Exception { - ServiceRelationships testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelVersionId(); - } - - - @Test - public void testSetModelVersionId() throws Exception { - ServiceRelationships testSubject; - String modelVersionId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setModelVersionId(modelVersionId); - } - - - @Test - public void testGetResourceVersion() throws Exception { - ServiceRelationships testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceVersion(); - } - - - @Test - public void testSetResourceVersion() throws Exception { - ServiceRelationships testSubject; - String resourceVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceVersion(resourceVersion); - } - - - @Test - public void testGetOrchestrationStatus() throws Exception { - ServiceRelationships testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOrchestrationStatus(); - } - - - @Test - public void testSetOrchestrationStatus() throws Exception { - ServiceRelationships testSubject; - String orchestrationStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOrchestrationStatus(orchestrationStatus); - } - - - @Test - public void testGetRelationshipList() throws Exception { - ServiceRelationships testSubject; - RelationshipList result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelationshipList(); - } - - - @Test - public void testSetRelationshipList() throws Exception { - ServiceRelationships testSubject; - RelationshipList relationshipList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRelationshipList(relationshipList); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java deleted file mode 100644 index 34ca70bd..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.aai.model; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ ServiceRelationshipsTest.class, RelationshipTest.class, RelatedToPropertyTest.class, RelationshipDataTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java deleted file mode 100644 index 8251ca0c..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java +++ /dev/null @@ -1,277 +0,0 @@ -package org.openecomp.vid.asdc.beans; - -import org.junit.Test; - - -public class ArtifactTest { - - private Artifact createTestSubject() { - return new Artifact(); - } - - - @Test - public void testGetArtifactName() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactName(); - } - - - @Test - public void testGetArtifactType() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactType(); - } - - - @Test - public void testGetArtifactGroupType() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactGroupType(); - } - - - @Test - public void testGetArtifactLabel() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactLabel(); - } - - - @Test - public void testGetArtifactURL() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactURL(); - } - - - @Test - public void testGetArtifactDescription() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactDescription(); - } - - - @Test - public void testGetArtifactTimeout() throws Exception { - Artifact testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactTimeout(); - } - - - @Test - public void testGetArtifactChecksum() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactChecksum(); - } - - - @Test - public void testGetArtifactUUID() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactUUID(); - } - - - @Test - public void testGetArtifactVersion() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifactVersion(); - } - - - @Test - public void testGetGeneratedFromUUID() throws Exception { - Artifact testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGeneratedFromUUID(); - } - - - @Test - public void testSetArtifactName() throws Exception { - Artifact testSubject; - String artifactName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactName(artifactName); - } - - - @Test - public void testSetArtifactType() throws Exception { - Artifact testSubject; - String artifactType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactType(artifactType); - } - - - @Test - public void testSetArtifactGroupType() throws Exception { - Artifact testSubject; - String artifactGroupType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactGroupType(artifactGroupType); - } - - - @Test - public void testSetArtifactLabel() throws Exception { - Artifact testSubject; - String artifactLabel = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactLabel(artifactLabel); - } - - - @Test - public void testSetArtifactURL() throws Exception { - Artifact testSubject; - String artifactURL = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactURL(artifactURL); - } - - - @Test - public void testSetArtifactDescription() throws Exception { - Artifact testSubject; - String artifactDescription = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactDescription(artifactDescription); - } - - - @Test - public void testSetArtifactTimeout() throws Exception { - Artifact testSubject; - int artifactTimeout = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactTimeout(artifactTimeout); - } - - - @Test - public void testSetArtifactChecksum() throws Exception { - Artifact testSubject; - String artifactChecksum = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactChecksum(artifactChecksum); - } - - - @Test - public void testSetArtifactUUID() throws Exception { - Artifact testSubject; - String artifactUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactUUID(artifactUUID); - } - - - @Test - public void testSetArtifactVersion() throws Exception { - Artifact testSubject; - String artifactVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactVersion(artifactVersion); - } - - - @Test - public void testSetGeneratedFromUUID() throws Exception { - Artifact testSubject; - String generatedFromUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGeneratedFromUUID(generatedFromUUID); - } - - - @Test - public void testHashCode() throws Exception { - Artifact testSubject; - int result; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifactUUID("48a52540-8772-4368-9cdb-1f124ea5c931"); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - Artifact testSubject; - Object o = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(o); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ResourceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ResourceTest.java deleted file mode 100644 index b7305600..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ResourceTest.java +++ /dev/null @@ -1,391 +0,0 @@ -package org.openecomp.vid.asdc.beans; - -import java.util.Collection; - -import org.junit.Test; -import org.openecomp.vid.asdc.beans.Resource.LifecycleState; -import org.openecomp.vid.asdc.beans.Resource.Type; - - -public class ResourceTest { - - private Resource createTestSubject() { - return new Resource(); - } - - - @Test - public void testGetUuid() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testGetInvariantUUID() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInvariantUUID(); - } - - - @Test - public void testGetName() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getName(); - } - - - @Test - public void testGetDescription() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - - @Test - public void testGetVersion() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - - @Test - public void testGetToscaModelURL() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getToscaModelURL(); - } - - - @Test - public void testGetCategory() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCategory(); - } - - - @Test - public void testGetSubCategory() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSubCategory(); - } - - - @Test - public void testGetResourceType() throws Exception { - Resource testSubject; - Type result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceType(); - } - - - @Test - public void testGetLifecycleState() throws Exception { - Resource testSubject; - LifecycleState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLifecycleState(); - } - - - @Test - public void testGetLastUpdaterUserId() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastUpdaterUserId(); - } - - - @Test - public void testGetLastUpdaterFullName() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastUpdaterFullName(); - } - - - @Test - public void testGetToscaModel() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getToscaModel(); - } - - - @Test - public void testGetToscaResourceName() throws Exception { - Resource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getToscaResourceName(); - } - - - @Test - public void testGetArtifacts() throws Exception { - Resource testSubject; - Collection<Artifact> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifacts(); - } - - - @Test - public void testGetResources() throws Exception { - Resource testSubject; - Collection<SubResource> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResources(); - } - - - @Test - public void testSetUuid() throws Exception { - Resource testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(uuid); - } - - - @Test - public void testSetInvariantUUID() throws Exception { - Resource testSubject; - String invariantUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInvariantUUID(invariantUUID); - } - - - @Test - public void testSetName() throws Exception { - Resource testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - - @Test - public void testSetDescription() throws Exception { - Resource testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - - @Test - public void testSetVersion() throws Exception { - Resource testSubject; - String version = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - - @Test - public void testSetToscaModelURL() throws Exception { - Resource testSubject; - String toscaModelURL = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setToscaModelURL(toscaModelURL); - } - - - @Test - public void testSetCategory() throws Exception { - Resource testSubject; - String category = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCategory(category); - } - - - @Test - public void testSetSubCategory() throws Exception { - Resource testSubject; - String subCategory = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSubCategory(subCategory); - } - - - @Test - public void testSetResourceType() throws Exception { - Resource testSubject; - Type resourceType = null; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceType(resourceType); - } - - - @Test - public void testSetLifecycleState() throws Exception { - Resource testSubject; - LifecycleState lifecycleState = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLifecycleState(lifecycleState); - } - - - @Test - public void testSetLastUpdaterUserId() throws Exception { - Resource testSubject; - String lastUpdaterUserId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLastUpdaterUserId(lastUpdaterUserId); - } - - - @Test - public void testSetLastUpdaterFullName() throws Exception { - Resource testSubject; - String lastUpdaterFullName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLastUpdaterFullName(lastUpdaterFullName); - } - - - @Test - public void testSetToscaModel() throws Exception { - Resource testSubject; - String toscaModel = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setToscaModel(toscaModel); - } - - - @Test - public void testSetToscaResourceName() throws Exception { - Resource testSubject; - String toscaResourceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setToscaResourceName(toscaResourceName); - } - - - @Test - public void testSetArtifacts() throws Exception { - Resource testSubject; - Collection<Artifact> artifacts = null; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifacts(artifacts); - } - - - @Test - public void testSetResources() throws Exception { - Resource testSubject; - Collection<SubResource> resources = null; - - // default test - testSubject = createTestSubject(); - testSubject.setResources(resources); - } - - - @Test - public void testHashCode() throws Exception { - Resource testSubject; - int result; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid("cb49608f-5a24-4789-b0f7-2595473cb997"); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - Resource testSubject; - Object o = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(o); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java deleted file mode 100644 index 75b0e986..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java +++ /dev/null @@ -1,167 +0,0 @@ -package org.openecomp.vid.asdc.beans; - -import java.util.Collection; - -import org.junit.Test; - - -public class SubResourceTest { - - private SubResource createTestSubject() { - return new SubResource(); - } - - - @Test - public void testGetResourceInstanceName() throws Exception { - SubResource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceInstanceName(); - } - - - @Test - public void testGetResourceName() throws Exception { - SubResource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceName(); - } - - - @Test - public void testGetResourceInvariantUUID() throws Exception { - SubResource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceInvariantUUID(); - } - - - @Test - public void testGetResourceVersion() throws Exception { - SubResource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceVersion(); - } - - - @Test - public void testGetResoucreType() throws Exception { - SubResource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResoucreType(); - } - - - @Test - public void testGetResourceUUID() throws Exception { - SubResource testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceUUID(); - } - - - @Test - public void testGetArtifacts() throws Exception { - SubResource testSubject; - Collection<Artifact> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArtifacts(); - } - - - @Test - public void testSetResourceInstanceName() throws Exception { - SubResource testSubject; - String resourceInstanceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceInstanceName(resourceInstanceName); - } - - - @Test - public void testSetResourceName() throws Exception { - SubResource testSubject; - String resourceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceName(resourceName); - } - - - @Test - public void testSetResourceInvariantUUID() throws Exception { - SubResource testSubject; - String resourceInvariantUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceInvariantUUID(resourceInvariantUUID); - } - - - @Test - public void testSetResourceVersion() throws Exception { - SubResource testSubject; - String resourceVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceVersion(resourceVersion); - } - - - @Test - public void testSetResoucreType() throws Exception { - SubResource testSubject; - String resourceType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResoucreType(resourceType); - } - - - @Test - public void testSetResourceUUID() throws Exception { - SubResource testSubject; - String resourceUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceUUID(resourceUUID); - } - - - @Test - public void testSetArtifacts() throws Exception { - SubResource testSubject; - Collection<Artifact> artifacts = null; - - // default test - testSubject = createTestSubject(); - testSubject.setArtifacts(artifacts); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java deleted file mode 100644 index 861c5c36..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.asdc.beans; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ ArtifactTest.class, ResourceTest.class, SubResourceTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/CapabilityTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/CapabilityTest.java deleted file mode 100644 index 4eed93b5..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/CapabilityTest.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import java.util.Collection; -import java.util.Map; - -import org.junit.Test; - - -public class CapabilityTest { - - private Capability createTestSubject() { - return new Capability(); - } - - - @Test - public void testGetType() throws Exception { - Capability testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getType(); - } - - - @Test - public void testGetDescription() throws Exception { - Capability testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - - @Test - public void testGetOccurrences() throws Exception { - Capability testSubject; - Collection<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOccurrences(); - } - - - @Test - public void testGetProperties() throws Exception { - Capability testSubject; - Map<String, Property> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProperties(); - } - - - @Test - public void testGetValid_source_types() throws Exception { - Capability testSubject; - Collection<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getValid_source_types(); - } - - - @Test - public void testSetType() throws Exception { - Capability testSubject; - String type = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setType(type); - } - - - @Test - public void testSetDescription() throws Exception { - Capability testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - - @Test - public void testSetOccurrences() throws Exception { - Capability testSubject; - Collection<String> occurrences = null; - - // default test - testSubject = createTestSubject(); - testSubject.setOccurrences(occurrences); - } - - - @Test - public void testSetProperties() throws Exception { - Capability testSubject; - Map<String, Property> properties = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProperties(properties); - } - - - @Test - public void testSetValid_source_types() throws Exception { - Capability testSubject; - Collection<String> valid_source_types = null; - - // default test - testSubject = createTestSubject(); - testSubject.setValid_source_types(valid_source_types); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ConstraintTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ConstraintTest.java deleted file mode 100644 index fb416f7e..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ConstraintTest.java +++ /dev/null @@ -1,221 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import java.util.List; - -import org.junit.Test; - -public class ConstraintTest { - - private Constraint createTestSubject() { - return new Constraint(); - } - - - @Test - public void testGetvalid_values() throws Exception { - Constraint testSubject; - List<Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getvalid_values(); - } - - - @Test - public void testGetEqual() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEqual(); - } - - - @Test - public void testGetGreater_than() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGreater_than(); - } - - - @Test - public void testGetGreater_or_equal() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGreater_or_equal(); - } - - - @Test - public void testGetLess_than() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLess_than(); - } - - - @Test - public void testGetLess_or_equal() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLess_or_equal(); - } - - - @Test - public void testGetIn_range() throws Exception { - Constraint testSubject; - List<Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIn_range(); - } - - - @Test - public void testGetLength() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLength(); - } - - - @Test - public void testGetMin_length() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMin_length(); - } - - - @Test - public void testGetMax_length() throws Exception { - Constraint testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMax_length(); - } - - - @Test - public void testSetvalid_values() throws Exception { - Constraint testSubject; - List<Object> vlist = null; - - // default test - testSubject = createTestSubject(); - testSubject.setvalid_values(vlist); - } - - - @Test - public void testSetEqual() throws Exception { - Constraint testSubject; - Object e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEqual(e); - } - - - @Test - public void testSetGreater_than() throws Exception { - Constraint testSubject; - Object e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setGreater_than(e); - } - - - @Test - public void testSetLess_than() throws Exception { - Constraint testSubject; - Object e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLess_than(e); - } - - - @Test - public void testSetIn_range() throws Exception { - Constraint testSubject; - List<Object> e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIn_range(e); - } - - - @Test - public void testSetLength() throws Exception { - Constraint testSubject; - Object e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLength(e); - } - - - @Test - public void testSetMin_length() throws Exception { - Constraint testSubject; - Object e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMin_length(e); - } - - - @Test - public void testSetMax_length() throws Exception { - Constraint testSubject; - Object e = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMax_length(e); - } - - - @Test - public void testToString() throws Exception { - Constraint testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/GroupTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/GroupTest.java deleted file mode 100644 index d3a1e4bb..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/GroupTest.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import java.util.Collection; -import java.util.Map; - -import org.junit.Test; - - -public class GroupTest { - - private Group createTestSubject() { - return new Group(); - } - - - @Test - public void testGetMetadata() throws Exception { - Group testSubject; - ToscaMetadata result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMetadata(); - } - - - @Test - public void testSetMetadata() throws Exception { - Group testSubject; - ToscaMetadata metadata = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMetadata(metadata); - } - - - @Test - public void testGetMembers() throws Exception { - Group testSubject; - Collection<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMembers(); - } - - - @Test - public void testSetMembers() throws Exception { - Group testSubject; - Collection<String> members = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMembers(members); - } - - - @Test - public void testGetType() throws Exception { - Group testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getType(); - } - - - @Test - public void testSetType() throws Exception { - Group testSubject; - String type = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setType(type); - } - - - @Test - public void testGetvf_module_type() throws Exception { - Group testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getvf_module_type(); - } - - - @Test - public void testSetvf_module_type() throws Exception { - Group testSubject; - String vf_module_type = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setvf_module_type(vf_module_type); - } - - - @Test - public void testGetProperties() throws Exception { - Group testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProperties(); - } - - - @Test - public void testSetProperties() throws Exception { - Group testSubject; - Map<String, Object> properties = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProperties(properties); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplateTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplateTest.java deleted file mode 100644 index 89177807..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplateTest.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import java.util.Map; - -import org.junit.Test; - -public class NodeTemplateTest { - - private NodeTemplate createTestSubject() { - return new NodeTemplate(); - } - - @Test - public void testGetType() throws Exception { - NodeTemplate testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getType(); - } - - @Test - public void testSetType() throws Exception { - NodeTemplate testSubject; - String type = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setType(type); - } - - @Test - public void testGetMetadata() throws Exception { - NodeTemplate testSubject; - ToscaMetadata result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMetadata(); - } - - @Test - public void testSetMetadata() throws Exception { - NodeTemplate testSubject; - ToscaMetadata metadata = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMetadata(metadata); - } - - @Test - public void testGetProperties() throws Exception { - NodeTemplate testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProperties(); - } - - @Test - public void testSetProperties() throws Exception { - NodeTemplate testSubject; - Map<String, Object> properties = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProperties(properties); - } - - @Test - public void testGetRequirements() throws Exception { - NodeTemplate testSubject; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRequirements(); - } - - @Test - public void testSetRequirements() throws Exception { - NodeTemplate testSubject; - Object requirements = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRequirements(requirements); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TestSuite.java deleted file mode 100644 index 40e08683..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ GroupTest.class, TopologyTemplateTest.class, ToscaModelTest.class, CapabilityTest.class, ToscaMetadataTest.class, - ConstraintTest.class, NodeTemplateTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplateTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplateTest.java deleted file mode 100644 index a3b96c26..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplateTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import java.util.Map; - -import org.junit.Test; - - -public class TopologyTemplateTest { - - private TopologyTemplate createTestSubject() { - return new TopologyTemplate(); - } - - - @Test - public void testGetsubstitution_mappings() throws Exception { - TopologyTemplate testSubject; - SubstitutionMappings result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getsubstitution_mappings(); - } - - - @Test - public void testSetsubstitution_mappings() throws Exception { - TopologyTemplate testSubject; - SubstitutionMappings substitution_mappings = null; - - // default test - testSubject = createTestSubject(); - testSubject.setsubstitution_mappings(substitution_mappings); - } - - - @Test - public void testGetInputs() throws Exception { - TopologyTemplate testSubject; - Map<String, Input> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInputs(); - } - - - @Test - public void testSetInputs() throws Exception { - TopologyTemplate testSubject; - Map<String, Input> inputs = null; - - // default test - testSubject = createTestSubject(); - testSubject.setInputs(inputs); - } - - - @Test - public void testGetnode_templates() throws Exception { - TopologyTemplate testSubject; - Map<String, NodeTemplate> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getnode_templates(); - } - - - @Test - public void testSetnode_templates() throws Exception { - TopologyTemplate testSubject; - Map<String, NodeTemplate> node_templates = null; - - // default test - testSubject = createTestSubject(); - testSubject.setnode_templates(node_templates); - } - - - @Test - public void testGetGroups() throws Exception { - TopologyTemplate testSubject; - Map<String, Group> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGroups(); - } - - - @Test - public void testSetGroups() throws Exception { - TopologyTemplate testSubject; - Map<String, Group> groups = null; - - // default test - testSubject = createTestSubject(); - testSubject.setGroups(groups); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadataTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadataTest.java deleted file mode 100644 index 4c6fed5c..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadataTest.java +++ /dev/null @@ -1,443 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import org.junit.Test; - -public class ToscaMetadataTest { - - private ToscaMetadata createTestSubject() { - return new ToscaMetadata(); - } - - @Test - public void testGetType() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getType(); - } - - @Test - public void testGetInvariantUUID() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInvariantUUID(); - } - - @Test - public void testGetCustomizationUUID() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCustomizationUUID(); - } - - @Test - public void testGetUUID() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } - - @Test - public void testGetVersion() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - @Test - public void testGetName() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getName(); - } - - @Test - public void testGetDescription() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - @Test - public void testGetCategory() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCategory(); - } - - @Test - public void testGetSubcategory() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSubcategory(); - } - - @Test - public void testGetResourceVendor() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceVendor(); - } - - @Test - public void testGetResourceVendorRelease() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResourceVendorRelease(); - } - - @Test - public void testGetServiceEcompNaming() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getServiceEcompNaming(); - } - - @Test - public void testGetNamingPolicy() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNamingPolicy(); - } - - @Test - public void testIsServiceHoming() throws Exception { - ToscaMetadata testSubject; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isServiceHoming(); - } - - @Test - public void testIsEcompGeneratedNaming() throws Exception { - ToscaMetadata testSubject; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isEcompGeneratedNaming(); - } - - @Test - public void testSetType() throws Exception { - ToscaMetadata testSubject; - String type = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setType(type); - } - - @Test - public void testSetInvariantUUID() throws Exception { - ToscaMetadata testSubject; - String invariantUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInvariantUUID(invariantUUID); - } - - @Test - public void testSetNamingPolicy() throws Exception { - ToscaMetadata testSubject; - String namingPolicy = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNamingPolicy(namingPolicy); - } - - @Test - public void testSetUUID() throws Exception { - ToscaMetadata testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - @Test - public void testSetCustomizationUUID() throws Exception { - ToscaMetadata testSubject; - String u = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCustomizationUUID(u); - } - - @Test - public void testSetVersion() throws Exception { - ToscaMetadata testSubject; - String version = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - @Test - public void testSetName() throws Exception { - ToscaMetadata testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - @Test - public void testSetDescription() throws Exception { - ToscaMetadata testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - @Test - public void testSetCategory() throws Exception { - ToscaMetadata testSubject; - String category = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCategory(category); - } - - @Test - public void testSetServiceEcompNaming() throws Exception { - ToscaMetadata testSubject; - String serviceEcompNaming = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setServiceEcompNaming(serviceEcompNaming); - } - - @Test - public void testSetServiceHoming() throws Exception { - ToscaMetadata testSubject; - boolean serviceHoming = false; - - // default test - testSubject = createTestSubject(); - testSubject.setServiceHoming(serviceHoming); - } - - @Test - public void testSetEcompGeneratedNaming() throws Exception { - ToscaMetadata testSubject; - boolean ecompGeneratedNaming = false; - - // default test - testSubject = createTestSubject(); - testSubject.setEcompGeneratedNaming(ecompGeneratedNaming); - } - - @Test - public void testGettemplate_name() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.gettemplate_name(); - } - - @Test - public void testSettemplate_name() throws Exception { - ToscaMetadata testSubject; - String template_name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.settemplate_name(template_name); - } - - - @Test - public void testSetSubcategory() throws Exception { - ToscaMetadata testSubject; - String subcategory = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSubcategory(subcategory); - } - - - @Test - public void testSetResourceVendor() throws Exception { - ToscaMetadata testSubject; - String resourceVendor = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceVendor(resourceVendor); - } - - - @Test - public void testSetResourceVendorRelease() throws Exception { - ToscaMetadata testSubject; - String resourceVendorRelease = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setResourceVendorRelease(resourceVendorRelease); - } - - - @Test - public void testGetVfModuleModelName() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModuleModelName(); - } - - - @Test - public void testSetVfModuleModelName() throws Exception { - ToscaMetadata testSubject; - String vfModuleModelName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModuleModelName(vfModuleModelName); - } - - - @Test - public void testGetVfModuleModelInvariantUUID() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModuleModelInvariantUUID(); - } - - - @Test - public void testSetVfModuleModelInvariantUUID() throws Exception { - ToscaMetadata testSubject; - String vfModuleModelInvariantUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModuleModelInvariantUUID(vfModuleModelInvariantUUID); - } - - - @Test - public void testGetVfModuleModelUUID() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModuleModelUUID(); - } - - - @Test - public void testSetVfModuleModelUUID() throws Exception { - ToscaMetadata testSubject; - String vfModuleModelUUID = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModuleModelUUID(vfModuleModelUUID); - } - - - @Test - public void testGetVfModuleModelVersion() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModuleModelVersion(); - } - - - @Test - public void testSetVfModuleModelVersion() throws Exception { - ToscaMetadata testSubject; - String vfModuleModelVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModuleModelVersion(vfModuleModelVersion); - } - - - @Test - public void testSetVfModuleModelCustomizationUUID() throws Exception { - ToscaMetadata testSubject; - String u = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModuleModelCustomizationUUID(u); - } - - - @Test - public void testGetVfModuleModelCustomizationUUID() throws Exception { - ToscaMetadata testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModuleModelCustomizationUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaModelTest.java b/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaModelTest.java deleted file mode 100644 index 6fb6f893..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaModelTest.java +++ /dev/null @@ -1,146 +0,0 @@ -package org.openecomp.vid.asdc.beans.tosca; - -import java.util.Collection; -import java.util.Map; - -import org.junit.Test; - - -public class ToscaModelTest { - - private ToscaModel createTestSubject() { - return new ToscaModel(); - } - - - @Test - public void testGetMetadata() throws Exception { - ToscaModel testSubject; - ToscaMetadata result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMetadata(); - } - - - @Test - public void testSetMetadata() throws Exception { - ToscaModel testSubject; - ToscaMetadata metadata = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMetadata(metadata); - } - - - @Test - public void testGettosca_definitions_version() throws Exception { - ToscaModel testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.gettosca_definitions_version(); - } - - - @Test - public void testSettosca_definitions_version() throws Exception { - ToscaModel testSubject; - String tosca_definitions_version = ""; - - // default test - testSubject = createTestSubject(); - testSubject.settosca_definitions_version(tosca_definitions_version); - } - - - @Test - public void testGettopology_template() throws Exception { - ToscaModel testSubject; - TopologyTemplate result; - - // default test - testSubject = createTestSubject(); - result = testSubject.gettopology_template(); - } - - - @Test - public void testSettopology_template() throws Exception { - ToscaModel testSubject; - TopologyTemplate topology_template = null; - - // default test - testSubject = createTestSubject(); - testSubject.settopology_template(topology_template); - } - - - @Test - public void testGetDescription() throws Exception { - ToscaModel testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - - @Test - public void testSetDescription() throws Exception { - ToscaModel testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - - @Test - public void testGetImports() throws Exception { - ToscaModel testSubject; - Collection<Map<String, Map<String, String>>> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getImports(); - } - - - @Test - public void testSetImports() throws Exception { - ToscaModel testSubject; - Collection<Map<String, Map<String, String>>> imports = null; - - // default test - testSubject = createTestSubject(); - testSubject.setImports(imports); - } - - - @Test - public void testGetnode_types() throws Exception { - ToscaModel testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getnode_types(); - } - - - @Test - public void testSetnode_types() throws Exception { - ToscaModel testSubject; - Map<String, Object> node_types = null; - - // default test - testSubject = createTestSubject(); - testSubject.setnode_types(node_types); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/client/FakeHttpSessionTest.java b/vid-app-common/src/test/java/org/openecomp/vid/client/FakeHttpSessionTest.java deleted file mode 100644 index f2855857..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/client/FakeHttpSessionTest.java +++ /dev/null @@ -1,206 +0,0 @@ -package org.openecomp.vid.client; - -import java.util.Enumeration; - -import javax.servlet.ServletContext; -import javax.servlet.http.HttpSessionContext; - -import org.junit.Test; - - -public class FakeHttpSessionTest { - - private FakeHttpSession createTestSubject() { - return new FakeHttpSession(); - } - - - @Test - public void testGetCreationTime() throws Exception { - FakeHttpSession testSubject; - long result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCreationTime(); - } - - - @Test - public void testGetId() throws Exception { - FakeHttpSession testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getId(); - } - - - @Test - public void testGetLastAccessedTime() throws Exception { - FakeHttpSession testSubject; - long result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastAccessedTime(); - } - - - @Test - public void testGetServletContext() throws Exception { - FakeHttpSession testSubject; - ServletContext result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getServletContext(); - } - - - @Test - public void testSetMaxInactiveInterval() throws Exception { - FakeHttpSession testSubject; - int maxInactiveInterval = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxInactiveInterval(maxInactiveInterval); - } - - - @Test - public void testGetMaxInactiveInterval() throws Exception { - FakeHttpSession testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxInactiveInterval(); - } - - - @Test - public void testGetSessionContext() throws Exception { - FakeHttpSession testSubject; - HttpSessionContext result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSessionContext(); - } - - - @Test - public void testGetAttribute() throws Exception { - FakeHttpSession testSubject; - String name = ""; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAttribute(name); - } - - - @Test - public void testGetValue() throws Exception { - FakeHttpSession testSubject; - String name = ""; - Object result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getValue(name); - } - - - @Test - public void testGetAttributeNames() throws Exception { - FakeHttpSession testSubject; - Enumeration<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAttributeNames(); - } - - - @Test - public void testGetValueNames() throws Exception { - FakeHttpSession testSubject; - String[] result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getValueNames(); - } - - - @Test - public void testSetAttribute() throws Exception { - FakeHttpSession testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAttribute(name, value); - } - - - @Test - public void testPutValue() throws Exception { - FakeHttpSession testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.putValue(name, value); - } - - - @Test - public void testRemoveAttribute() throws Exception { - FakeHttpSession testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.removeAttribute(name); - } - - - @Test - public void testRemoveValue() throws Exception { - FakeHttpSession testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.removeValue(name); - } - - - @Test - public void testInvalidate() throws Exception { - FakeHttpSession testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.invalidate(); - } - - - @Test - public void testIsNew() throws Exception { - FakeHttpSession testSubject; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isNew(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/client/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/client/TestSuite.java deleted file mode 100644 index dbbd5691..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/client/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.client; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ FakeHttpSessionTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java deleted file mode 100644 index e342940f..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.openecomp.vid.controller; - -import javax.servlet.http.HttpServletRequest; - -import org.json.simple.JSONObject; -import org.junit.Test; -import org.springframework.http.ResponseEntity; -import org.springframework.web.servlet.ModelAndView; - -public class AaiControllerTest { - - private AaiController createTestSubject() { - return new AaiController(); - } - - @Test - public void testParseCustomerObjectForTenants() throws Exception { - JSONObject jsonObject = null; - String result; - - // default test - result = AaiController.parseCustomerObjectForTenants(jsonObject); - } - - @Test - public void testParseServiceSubscriptionObjectForTenants() throws Exception { - JSONObject jsonObject = null; - String result; - - // default test - result = AaiController.parseServiceSubscriptionObjectForTenants(jsonObject); - } - - @Test - public void testWelcome() throws Exception { - AaiController testSubject; - HttpServletRequest request = null; - ModelAndView result; - - // default test - testSubject = createTestSubject(); - result = testSubject.welcome(request); - } - - @Test - public void testGetViewName() throws Exception { - AaiController testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getViewName(); - } - - @Test - public void testSetViewName() throws Exception { - AaiController testSubject; - String viewName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setViewName(viewName); - } - - @Test - public void testGetTargetProvStatus() throws Exception { - AaiController testSubject; - ResponseEntity<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTargetProvStatus(); - } - - @Test - public void testViewEditGetTenantsFromServiceType() throws Exception { - AaiController testSubject; - HttpServletRequest request = null; - String globalCustomerId = ""; - String serviceType = ""; - ResponseEntity<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.viewEditGetTenantsFromServiceType(request, globalCustomerId, serviceType); - } - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java deleted file mode 100644 index 045ad9a6..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.openecomp.vid.controller; - -import org.junit.Test; -import org.openecomp.vid.controller.HealthCheckController.HealthStatus; - -public class HealthCheckControllerTest { - - private HealthCheckController createTestSubject() { - return new HealthCheckController(); - } - - @Test - public void testGetProfileCount() throws Exception { - HealthCheckController testSubject; - String driver = ""; - String URL = ""; - String username = ""; - String password = ""; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProfileCount(driver, URL, username, password); - } - - @Test - public void testGethealthCheckStatusforIDNS() throws Exception { - HealthCheckController testSubject; - HealthStatus result; - - // default test - testSubject = createTestSubject(); - result = testSubject.gethealthCheckStatusforIDNS(); - } - - @Test - public void testGetHealthCheck() throws Exception { - HealthCheckController testSubject; - String UserAgent = ""; - String ECOMPRequestID = ""; - HealthStatus result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHealthCheck(UserAgent, ECOMPRequestID); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java deleted file mode 100644 index cf7ada46..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.openecomp.vid.controller; - -import javax.servlet.http.HttpServletRequest; - -import org.junit.Test; -import org.springframework.http.ResponseEntity; -import org.springframework.web.servlet.ModelAndView; - -public class PropertyControllerTest { - - private PropertyController createTestSubject() { - return new PropertyController(); - } - - @Test - public void testWelcome() throws Exception { - PropertyController testSubject; - HttpServletRequest request = null; - ModelAndView result; - - // default test - testSubject = createTestSubject(); - result = testSubject.welcome(request); - } - - @Test - public void testGetViewName() throws Exception { - PropertyController testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getViewName(); - } - - @Test - public void testSetViewName() throws Exception { - PropertyController testSubject; - String _viewName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setViewName(_viewName); - } - - @Test - public void testGetProperty() throws Exception { - PropertyController testSubject; - String name = ""; - String defaultvalue = ""; - HttpServletRequest request = null; - ResponseEntity<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProperty(name, defaultvalue, request); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java deleted file mode 100644 index c1b14642..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.controller; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ HealthCheckControllerTest.class, PropertyControllerTest.class, AaiControllerTest.class, - ViewEditSubControllerTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java deleted file mode 100644 index 2b234ee8..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openecomp.vid.controller; - -import javax.servlet.http.HttpServletRequest; - -import org.junit.Test; -import org.springframework.web.servlet.ModelAndView; - -public class ViewEditSubControllerTest { - - private ViewEditSubController createTestSubject() { - return new ViewEditSubController(); - } - - @Test - public void testWelcome() throws Exception { - ViewEditSubController testSubject; - HttpServletRequest request = null; - ModelAndView result; - - // default test - testSubject = createTestSubject(); - result = testSubject.welcome(request); - } - - - @Test - public void testGetViewName() throws Exception { - ViewEditSubController testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getViewName(); - } - - @Test - public void testSetViewName() throws Exception { - ViewEditSubController testSubject; - String viewName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setViewName(viewName); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/ModelUtilTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/ModelUtilTest.java deleted file mode 100644 index 8a9f4de8..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/ModelUtilTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.openecomp.vid.model; - -import org.junit.Assert; -import org.junit.Test; - - -public class ModelUtilTest { - - private ModelUtil createTestSubject() { - return new ModelUtil(); - } - - - @Test - public void testGetTags() throws Exception { - String[] namespaces; - String constantValue = "test"; - String[] result; - - // test 1 - namespaces = null; - result = ModelUtil.getTags(namespaces, constantValue); - Assert.assertNull(result); - - // test 2 - namespaces = new String[] { "" }; - result = ModelUtil.getTags(namespaces, constantValue); - Assert.assertArrayEquals(new String[] { constantValue }, result); - } - - - @Test - public void testIsType() throws Exception { - String type = "a"; - String[] tags; - boolean result; - - // test 1 - tags = null; - result = ModelUtil.isType(type, tags); - Assert.assertEquals(false, result); - - // test 2 - tags = new String[] { "a" }; - result = ModelUtil.isType(type, tags); - Assert.assertEquals(true, result); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/NewNodeTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/NewNodeTest.java deleted file mode 100644 index fb75c749..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/NewNodeTest.java +++ /dev/null @@ -1,212 +0,0 @@ -package org.openecomp.vid.model; - -import java.util.Map; - -import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.Input; - - -public class NewNodeTest { - - private NewNode createTestSubject() { - return new NewNode(); - } - - - @Test - public void testGetUuid() throws Exception { - NewNode testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testGetInvariantUuid() throws Exception { - NewNode testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInvariantUuid(); - } - - - @Test - public void testGetDescription() throws Exception { - NewNode testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - - @Test - public void testGetName() throws Exception { - NewNode testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getName(); - } - - - @Test - public void testGetVersion() throws Exception { - NewNode testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - - @Test - public void testGetCustomizationUuid() throws Exception { - NewNode testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCustomizationUuid(); - } - - - @Test - public void testGetInputs() throws Exception { - NewNode testSubject; - Map<String, Input> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInputs(); - } - - - @Test - public void testGetCommands() throws Exception { - NewNode testSubject; - Map<String, CommandProperty> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCommands(); - } - - - @Test - public void testGetProperties() throws Exception { - NewNode testSubject; - Map<String, String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProperties(); - } - - - @Test - public void testSetUuid() throws Exception { - NewNode testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(uuid); - } - - - @Test - public void testSetInvariantUuid() throws Exception { - NewNode testSubject; - String invariantUuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInvariantUuid(invariantUuid); - } - - - @Test - public void testSetDescription() throws Exception { - NewNode testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - - @Test - public void testSetName() throws Exception { - NewNode testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - - @Test - public void testSetVersion() throws Exception { - NewNode testSubject; - String version = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - - @Test - public void testSetCustomizationUuid() throws Exception { - NewNode testSubject; - String u = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCustomizationUuid(u); - } - - - @Test - public void testSetInputs() throws Exception { - NewNode testSubject; - Map<String, Input> inputs = null; - - // default test - testSubject = createTestSubject(); - testSubject.setInputs(inputs); - } - - - @Test - public void testSetCommands() throws Exception { - NewNode testSubject; - Map<String, CommandProperty> m = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCommands(m); - } - - - @Test - public void testSetProperties() throws Exception { - NewNode testSubject; - Map<String, String> p = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProperties(p); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/NewServiceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/NewServiceTest.java deleted file mode 100644 index f7891427..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/NewServiceTest.java +++ /dev/null @@ -1,235 +0,0 @@ -package org.openecomp.vid.model; - -import java.util.Map; - -import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.Input; - -public class NewServiceTest { - - private NewService createTestSubject() { - return new NewService(); - } - - - @Test - public void testGetUuid() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testGetInvariantUuid() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInvariantUuid(); - } - - - @Test - public void testGetName() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getName(); - } - - - @Test - public void testGetVersion() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - - @Test - public void testGetToscaModelURL() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getToscaModelURL(); - } - - - @Test - public void testGetCategory() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCategory(); - } - - - @Test - public void testGetDescription() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - - @Test - public void testGetInputs() throws Exception { - NewService testSubject; - Map<String, Input> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInputs(); - } - - - @Test - public void testGetServiceEcompNaming() throws Exception { - NewService testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getServiceEcompNaming(); - } - - - @Test - public void testSetUuid() throws Exception { - NewService testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(uuid); - } - - - @Test - public void testSetInvariantUuid() throws Exception { - NewService testSubject; - String invariantUuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInvariantUuid(invariantUuid); - } - - - @Test - public void testSetName() throws Exception { - NewService testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - - @Test - public void testSetVersion() throws Exception { - NewService testSubject; - String version = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - - @Test - public void testSetToscaModelURL() throws Exception { - NewService testSubject; - String toscaModelURL = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setToscaModelURL(toscaModelURL); - } - - - @Test - public void testSetCategory() throws Exception { - NewService testSubject; - String category = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCategory(category); - } - - - @Test - public void testSetDescription() throws Exception { - NewService testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - - @Test - public void testSetInputs() throws Exception { - NewService testSubject; - Map<String, Input> inputs = null; - - // default test - testSubject = createTestSubject(); - testSubject.setInputs(inputs); - } - - - @Test - public void testSetServiceEcompNaming() throws Exception { - NewService testSubject; - String serviceEcompNaming = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setServiceEcompNaming(serviceEcompNaming); - } - - - @Test - public void testHashCode() throws Exception { - NewService testSubject; - int result; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid("cb49608f-5a24-4789-b0f7-2595473cb997"); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - NewService testSubject; - Object o = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(o); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/NewVNFTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/NewVNFTest.java deleted file mode 100644 index 5f4f90b9..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/NewVNFTest.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.openecomp.vid.model; - -import java.util.Map; - -import org.junit.Test; - -public class NewVNFTest { - - private NewVNF createTestSubject() { - return new NewVNF(); - } - - - @Test - public void testGetModelCustomizationName() throws Exception { - NewVNF testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelCustomizationName(); - } - - - @Test - public void testGetVfModules() throws Exception { - NewVNF testSubject; - Map<String, VfModule> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModules(); - } - - - @Test - public void testSetVfModules() throws Exception { - NewVNF testSubject; - Map<String, VfModule> vfModules = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModules(vfModules); - } - - - @Test - public void testGetVolumeGroups() throws Exception { - NewVNF testSubject; - Map<String, VolumeGroup> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVolumeGroups(); - } - - - @Test - public void testSetVolumeGroups() throws Exception { - NewVNF testSubject; - Map<String, VolumeGroup> volumeGroups = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVolumeGroups(volumeGroups); - } - - - @Test - public void testSetModelCustomizationName() throws Exception { - NewVNF testSubject; - String modelCustomizationName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setModelCustomizationName(modelCustomizationName); - } - - - @Test - public void testNormalizeName() throws Exception { - String originalName = ""; - String result; - - // default test - result = NewVNF.normalizeName(originalName); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/ServiceModelTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/ServiceModelTest.java deleted file mode 100644 index 45f49201..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/ServiceModelTest.java +++ /dev/null @@ -1,123 +0,0 @@ -package org.openecomp.vid.model; - -import java.util.Map; - -import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.ToscaModel; -import org.openecomp.vid.model.Service; - -public class ServiceModelTest { - - private ServiceModel createTestSubject() { - return new ServiceModel(); - } - - @Test - public void testGetService() throws Exception { - ServiceModel testSubject; - Service result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getService(); - } - - @Test - public void testGetVnfs() throws Exception { - ServiceModel testSubject; - Map<String, VNF> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVnfs(); - } - - @Test - public void testGetNetworks() throws Exception { - ServiceModel testSubject; - Map<String, Network> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNetworks(); - } - - @Test - public void testSetService() throws Exception { - ServiceModel testSubject; - Service service = null; - - // default test - testSubject = createTestSubject(); - testSubject.setService(service); - } - - @Test - public void testSetVnfs() throws Exception { - ServiceModel testSubject; - Map<String, VNF> vnfs = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVnfs(vnfs); - } - - @Test - public void testSetNetworks() throws Exception { - ServiceModel testSubject; - Map<String, Network> networks = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNetworks(networks); - } - - @Test - public void testGetVfModules() throws Exception { - ServiceModel testSubject; - Map<String, VfModule> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfModules(); - } - - @Test - public void testGetVolumeGroups() throws Exception { - ServiceModel testSubject; - Map<String, VolumeGroup> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVolumeGroups(); - } - - @Test - public void testSetVfModules() throws Exception { - ServiceModel testSubject; - Map<String, VfModule> vfModules = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVfModules(vfModules); - } - - @Test - public void testSetVolumeGroups() throws Exception { - ServiceModel testSubject; - Map<String, VolumeGroup> volumeGroups = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVolumeGroups(volumeGroups); - } - - @Test - public void testAssociateGroups() throws Exception { - ServiceModel testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.associateGroups(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/model/TestSuite.java deleted file mode 100644 index 3d7f57b3..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.model; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ ModelUtilTest.class, NewServiceTest.class, VolumeGroupTest.class, NewNodeTest.class, ServiceModelTest.class, - WorkflowTest.class, NewVNFTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/VolumeGroupTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/VolumeGroupTest.java deleted file mode 100644 index 038290b2..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/VolumeGroupTest.java +++ /dev/null @@ -1,169 +0,0 @@ -package org.openecomp.vid.model; - -import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.Group; - - -public class VolumeGroupTest { - - private VolumeGroup createTestSubject() { - return new VolumeGroup(); - } - - - @Test - public void testGetUuid() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testGetCustomizationUuid() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCustomizationUuid(); - } - - - @Test - public void testGetModelCustomizationName() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelCustomizationName(); - } - - - @Test - public void testGetInvariantUuid() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInvariantUuid(); - } - - - @Test - public void testGetDescription() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDescription(); - } - - - @Test - public void testGetName() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getName(); - } - - - @Test - public void testGetVersion() throws Exception { - VolumeGroup testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - - @Test - public void testSetUuid() throws Exception { - VolumeGroup testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(uuid); - } - - - @Test - public void testSetInvariantUuid() throws Exception { - VolumeGroup testSubject; - String invariantUuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInvariantUuid(invariantUuid); - } - - - @Test - public void testSetDescription() throws Exception { - VolumeGroup testSubject; - String description = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDescription(description); - } - - - @Test - public void testSetName() throws Exception { - VolumeGroup testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - - @Test - public void testSetVersion() throws Exception { - VolumeGroup testSubject; - String version = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - - @Test - public void testSetCustomizationUuid() throws Exception { - VolumeGroup testSubject; - String u = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCustomizationUuid(u); - } - - - @Test - public void testSetModelCustomizationName() throws Exception { - VolumeGroup testSubject; - String u = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setModelCustomizationName(u); - } - - - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/WorkflowTest.java b/vid-app-common/src/test/java/org/openecomp/vid/model/WorkflowTest.java deleted file mode 100644 index 5f8ec7d1..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/WorkflowTest.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.openecomp.vid.model; - -import java.util.Collection; - -import org.junit.Test; - -public class WorkflowTest { - - private Workflow createTestSubject() { - return new Workflow(); - } - - @Test - public void testGetId() throws Exception { - Workflow testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getId(); - } - - @Test - public void testGetWorkflowName() throws Exception { - Workflow testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getWorkflowName(); - } - - @Test - public void testGetVnfNames() throws Exception { - Workflow testSubject; - Collection<String> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVnfNames(); - } - - @Test - public void testSetId() throws Exception { - Workflow testSubject; - int id = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setId(id); - } - - @Test - public void testSetWorkflowName() throws Exception { - Workflow testSubject; - String workflowName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setWorkflowName(workflowName); - } - - @Test - public void testSetVnfName() throws Exception { - Workflow testSubject; - Collection<String> vnfNames = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVnfName(vnfNames); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoLocalClientNewTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoLocalClientNewTest.java deleted file mode 100644 index 6e409737..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoLocalClientNewTest.java +++ /dev/null @@ -1,169 +0,0 @@ -package org.openecomp.vid.mso; - -import org.junit.Test; -import org.openecomp.vid.changeManagement.RequestDetails; - -public class MsoLocalClientNewTest { - - private MsoLocalClientNew createTestSubject() { - return new MsoLocalClientNew(); - } - - @Test - public void testCreateSvcInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createSvcInstance(requestDetails, endpoint); - } - - @Test - public void testCreateInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails request = null; - String path = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createInstance(request, path); - } - - @Test - public void testCreateVnf() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createVnf(requestDetails, endpoint); - } - - @Test - public void testCreateNwInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createNwInstance(requestDetails, endpoint); - } - - @Test - public void testCreateVolumeGroupInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String path = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createVolumeGroupInstance(requestDetails, path); - } - - @Test - public void testCreateVfModuleInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createVfModuleInstance(requestDetails, endpoint); - } - - @Test - public void testDeleteSvcInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteSvcInstance(requestDetails, endpoint); - } - - @Test - public void testDeleteVnf() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteVnf(requestDetails, endpoint); - } - - @Test - public void testDeleteVfModule() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteVfModule(requestDetails, endpoint); - } - - @Test - public void testDeleteVolumeGroupInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteVolumeGroupInstance(requestDetails, endpoint); - } - - @Test - public void testDeleteNwInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteNwInstance(requestDetails, endpoint); - } - - @Test - public void testGetOrchestrationRequest() throws Exception { - MsoLocalClientNew testSubject; - String t = ""; - String sourceId = ""; - String endpoint = ""; - RestObject restObject = null; - - // default test - testSubject = createTestSubject(); - testSubject.getOrchestrationRequest(t, sourceId, endpoint, restObject); - } - - - @Test - public void testUpdateVnf() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String vnf_endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.updateVnf(requestDetails, vnf_endpoint); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestIntTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestIntTest.java deleted file mode 100644 index e32e4872..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestIntTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openecomp.vid.mso; - -import org.junit.Test; -import org.openecomp.vid.mso.rest.RequestDetails; - -public class MsoRestIntTest { - - private MsoRestInt createTestSubject() { - return new MsoRestInt(); - } - - @Test - public void testLogRequest() throws Exception { - MsoRestInt testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestInterfaceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestInterfaceTest.java deleted file mode 100644 index 9c96e117..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestInterfaceTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openecomp.vid.mso; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.junit.Test; - -public class MsoRestInterfaceTest { - - private MsoRestInterface createTestSubject() { - return new MsoRestInterface(); - } - - @Test - public void testInitMsoClient() throws Exception { - MsoRestInterface testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.initMsoClient(); - } - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoUtilTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoUtilTest.java deleted file mode 100644 index 6a9816e3..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoUtilTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openecomp.vid.mso; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.glassfish.jersey.client.ClientResponse; -import org.junit.Assert; -import org.junit.Test; - -public class MsoUtilTest { - - private MsoUtil createTestSubject() { - return new MsoUtil(); - } - - @Test - public void testWrapResponse() throws Exception { - String body = ""; - int statusCode = 0; - MsoResponseWrapper result; - - // default test - result = MsoUtil.wrapResponse(body, statusCode); - } - - - @Test - public void testWrapResponse_2() throws Exception { - RestObject<String> rs = null; - MsoResponseWrapper result; - - // test 1 - result = MsoUtil.wrapResponse(rs); - Assert.assertNotNull(result); - } - - @Test - public void testConvertPojoToString() throws Exception { - T t = null; - String result; - - // test 1 - t = null; - result = MsoUtil.convertPojoToString(t); - Assert.assertEquals("", result); - } - - @Test - public void testMain() throws Exception { - String[] args = new String[] { "" }; - - // default test - MsoUtil.main(args); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/RestMsoImplementationTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/RestMsoImplementationTest.java deleted file mode 100644 index 1f1e3395..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/RestMsoImplementationTest.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.openecomp.vid.mso; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.junit.Test; -import org.openecomp.vid.changeManagement.RequestDetails; -import org.openecomp.vid.changeManagement.RequestDetailsWrapper; - -public class RestMsoImplementationTest { - - private RestMsoImplementation createTestSubject() { - return new RestMsoImplementation(); - } - - @Test - public void testInitMsoClient() throws Exception { - RestMsoImplementation testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.initMsoClient(); - } - - @Test - public void testLogRequest() throws Exception { - RestMsoImplementation testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } - - @Test - public void testLogRequest_1() throws Exception { - RestMsoImplementation testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/TestSuite.java deleted file mode 100644 index aa30935c..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.mso; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ MsoRestIntTest.class, MsoUtilTest.class, MsoRestInterfaceTest.class, MsoLocalClientNewTest.class, - RestMsoImplementationTest.class, org.openecomp.vid.mso.rest.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java deleted file mode 100644 index 663d1f53..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java +++ /dev/null @@ -1,91 +0,0 @@ -package org.openecomp.vid.mso.rest; - -import org.junit.Test; -import org.openecomp.vid.domain.mso.InstanceIds; -import org.openecomp.vid.domain.mso.RequestStatus; - - -public class AsyncRequestStatusTest { - - private AsyncRequestStatus createTestSubject() { - return new AsyncRequestStatus(); - } - - - @Test - public void testGetInstanceIds() throws Exception { - AsyncRequestStatus testSubject; - InstanceIds result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInstanceIds(); - } - - - @Test - public void testSetInstanceIds() throws Exception { - AsyncRequestStatus testSubject; - InstanceIds instanceIds = null; - - // default test - testSubject = createTestSubject(); - testSubject.setInstanceIds(instanceIds); - } - - - @Test - public void testGetRequestStatus() throws Exception { - AsyncRequestStatus testSubject; - RequestStatus result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRequestStatus(); - } - - - @Test - public void testSetRequestStatus() throws Exception { - AsyncRequestStatus testSubject; - RequestStatus requestStatus = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRequestStatus(requestStatus); - } - - - @Test - public void testToString() throws Exception { - AsyncRequestStatus testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testHashCode() throws Exception { - AsyncRequestStatus testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - AsyncRequestStatus testSubject; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(other); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedInstanceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedInstanceTest.java deleted file mode 100644 index b3bee441..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedInstanceTest.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.openecomp.vid.mso.rest; - -import java.util.Map; - -import org.junit.Test; -import org.openecomp.vid.domain.mso.ModelInfo; - - -public class RelatedInstanceTest { - - private RelatedInstance createTestSubject() { - return new RelatedInstance(); - } - - - @Test - public void testGetModelInfo() throws Exception { - RelatedInstance testSubject; - ModelInfo result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelInfo(); - } - - - @Test - public void testSetModelInfo() throws Exception { - RelatedInstance testSubject; - ModelInfo modelInfo = null; - - // default test - testSubject = createTestSubject(); - testSubject.setModelInfo(modelInfo); - } - - - @Test - public void testToString() throws Exception { - RelatedInstance testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetAdditionalProperties() throws Exception { - RelatedInstance testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - - @Test - public void testSetAdditionalProperty() throws Exception { - RelatedInstance testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - - @Test - public void testHashCode() throws Exception { - RelatedInstance testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - RelatedInstance testSubject; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(other); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedModelTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedModelTest.java deleted file mode 100644 index b08ff89b..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedModelTest.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.openecomp.vid.mso.rest; - -import java.util.Map; - -import org.junit.Test; -import org.openecomp.vid.domain.mso.ModelInfo; - - -public class RelatedModelTest { - - private RelatedModel createTestSubject() { - return new RelatedModel(); - } - - - @Test - public void testGetModelInfo() throws Exception { - RelatedModel testSubject; - ModelInfo result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelInfo(); - } - - - @Test - public void testSetModelInfo() throws Exception { - RelatedModel testSubject; - ModelInfo modelInfo = null; - - // default test - testSubject = createTestSubject(); - testSubject.setModelInfo(modelInfo); - } - - - @Test - public void testToString() throws Exception { - RelatedModel testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetAdditionalProperties() throws Exception { - RelatedModel testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - - @Test - public void testSetAdditionalProperty() throws Exception { - RelatedModel testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - - @Test - public void testHashCode() throws Exception { - RelatedModel testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - RelatedModel testSubject; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(other); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RequestDetailsTest.java deleted file mode 100644 index 41fbc7a1..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RequestDetailsTest.java +++ /dev/null @@ -1,182 +0,0 @@ -package org.openecomp.vid.mso.rest; - -import java.util.List; -import java.util.Map; - -import org.junit.Test; -import org.openecomp.vid.domain.mso.*; - - -public class RequestDetailsTest { - - private RequestDetails createTestSubject() { - return new RequestDetails(); - } - - - @Test - public void testGetCloudConfiguration() throws Exception { - RequestDetails testSubject; - CloudConfiguration result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCloudConfiguration(); - } - - - @Test - public void testSetCloudConfiguration() throws Exception { - RequestDetails testSubject; - CloudConfiguration cloudConfiguration = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCloudConfiguration(cloudConfiguration); - } - - - @Test - public void testGetModelInfo() throws Exception { - RequestDetails testSubject; - ModelInfo result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelInfo(); - } - - - @Test - public void testSetModelInfo() throws Exception { - RequestDetails testSubject; - ModelInfo modelInfo = null; - - // default test - testSubject = createTestSubject(); - testSubject.setModelInfo(modelInfo); - } - - - @Test - public void testGetRelatedInstanceList() throws Exception { - RequestDetails testSubject; - List<RelatedModel> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRelatedInstanceList(); - } - - - @Test - public void testSetRelatedInstanceList() throws Exception { - RequestDetails testSubject; - List<RelatedModel> relatedInstanceList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRelatedInstanceList(relatedInstanceList); - } - - - @Test - public void testGetRequestInfo() throws Exception { - RequestDetails testSubject; - RequestInfo result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRequestInfo(); - } - - - @Test - public void testSetRequestInfo() throws Exception { - RequestDetails testSubject; - RequestInfo requestInfo = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRequestInfo(requestInfo); - } - - - @Test - public void testGetSubscriberInfo() throws Exception { - RequestDetails testSubject; - SubscriberInfo result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSubscriberInfo(); - } - - - @Test - public void testSetSubscriberInfo() throws Exception { - RequestDetails testSubject; - SubscriberInfo subscriberInfo = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSubscriberInfo(subscriberInfo); - } - - - @Test - public void testToString() throws Exception { - RequestDetails testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetAdditionalProperties() throws Exception { - RequestDetails testSubject; - Map<String, Object> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - - @Test - public void testSetAdditionalProperty() throws Exception { - RequestDetails testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - - @Test - public void testHashCode() throws Exception { - RequestDetails testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - - @Test - public void testEquals() throws Exception { - RequestDetails testSubject; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.equals(other); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/TestSuite.java deleted file mode 100644 index ef86682f..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.mso.rest; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RelatedModelTest.class, AsyncRequestStatusTest.class, RequestDetailsTest.class, - RelatedInstanceTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java deleted file mode 100644 index 21a33725..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.openecomp.vid.policy; - -import org.junit.Test; - -public class PolicyResponseWrapperTest { - - private PolicyResponseWrapper createTestSubject() { - return new PolicyResponseWrapper(); - } - - @Test - public void testGetEntity() throws Exception { - PolicyResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEntity(); - } - - @Test - public void testGetStatus() throws Exception { - PolicyResponseWrapper testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStatus(); - } - - @Test - public void testSetStatus() throws Exception { - PolicyResponseWrapper testSubject; - int v = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setStatus(v); - } - - @Test - public void testSetEntity() throws Exception { - PolicyResponseWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEntity(v); - } - - @Test - public void testToString() throws Exception { - PolicyResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetResponse() throws Exception { - PolicyResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestIntTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestIntTest.java deleted file mode 100644 index 54181656..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestIntTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openecomp.vid.policy; - -import org.junit.Test; -import org.openecomp.vid.policy.rest.RequestDetails; - -public class PolicyRestIntTest { - - private PolicyRestInt createTestSubject() { - return new PolicyRestInt(); - } - - @Test - public void testLogRequest() throws Exception { - PolicyRestInt testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestInterfaceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestInterfaceTest.java deleted file mode 100644 index 29e13624..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestInterfaceTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openecomp.vid.policy; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.json.simple.JSONObject; -import org.junit.Test; -import org.openecomp.vid.policy.rest.RequestDetails; - -public class PolicyRestInterfaceTest { - - private PolicyRestInterface createTestSubject() { - return new PolicyRestInterface(); - } - - - @Test - public void testLogRequest() throws Exception { - PolicyRestInterface testSubject; - RequestDetails r = null; - - // default test - testSubject = createTestSubject(); - testSubject.logRequest(r); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java deleted file mode 100644 index b7f88ac3..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.openecomp.vid.policy; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.glassfish.jersey.client.ClientResponse; -import org.junit.Assert; -import org.junit.Test; - -public class PolicyUtilTest { - - private PolicyUtil createTestSubject() { - return new PolicyUtil(); - } - - @Test - public void testWrapResponse() throws Exception { - String body = ""; - int statusCode = 0; - PolicyResponseWrapper result; - - // default test - result = PolicyUtil.wrapResponse(body, statusCode); - } - - - @Test - public void testWrapResponse_2() throws Exception { - RestObject<String> rs = null; - PolicyResponseWrapper result; - - // test 1 - rs = null; - result = PolicyUtil.wrapResponse(rs); - Assert.assertNotNull(result); - } - - @Test - public void testConvertPojoToString() throws Exception { - T t = null; - String result; - - // test 1 - t = null; - result = PolicyUtil.convertPojoToString(t); - Assert.assertEquals("", result); - } - - @Test - public void testMain() throws Exception { - String[] args = new String[] { "" }; - - // default test - PolicyUtil.main(args); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/RestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/RestObjectTest.java deleted file mode 100644 index a961a1a4..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/RestObjectTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.openecomp.vid.policy; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.junit.Test; - -public class RestObjectTest { - - private RestObject createTestSubject() { - return new RestObject(); - } - - @Test - public void testSet() throws Exception { - RestObject testSubject; - T t = null; - - // default test - testSubject = createTestSubject(); - testSubject.set(t); - } - - @Test - public void testGet() throws Exception { - RestObject testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.get(); - } - - @Test - public void testSetStatusCode() throws Exception { - RestObject testSubject; - int v = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setStatusCode(v); - } - - @Test - public void testGetStatusCode() throws Exception { - RestObject testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStatusCode(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java deleted file mode 100644 index 7d0b4eb2..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.policy; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RestObjectTest.class, PolicyResponseWrapperTest.class, PolicyRestIntTest.class, PolicyUtilTest.class, - PolicyRestInterfaceTest.class, org.openecomp.vid.policy.rest.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java deleted file mode 100644 index 70577557..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.policy.rest; - -import org.junit.Test; - - -public class RequestDetailsTest { - - private RequestDetails createTestSubject() { - return new RequestDetails(); - } - - - @Test - public void testGetPolicyName() throws Exception { - RequestDetails testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPolicyName(); - } - - - @Test - public void testSetPolicyName() throws Exception { - RequestDetails testSubject; - String policyName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPolicyName(policyName); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java deleted file mode 100644 index 9b491c86..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.policy.rest; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RequestDetailsTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java deleted file mode 100644 index b2993084..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.properties; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ VidPropertiesTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java b/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java deleted file mode 100644 index 7d318c74..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.openecomp.vid.properties; - -import org.junit.Test; - - -public class VidPropertiesTest { - - private VidProperties createTestSubject() { - return new VidProperties(); - } - - - @Test - public void testGetAsdcModelNamespace() throws Exception { - String result; - - // default test - result = VidProperties.getAsdcModelNamespace(); - } - - - @Test - public void testGetPropertyWithDefault() throws Exception { - String propName = ""; - String defaultValue = ""; - String result; - - // default test - result = VidProperties.getPropertyWithDefault(propName, defaultValue); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java b/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java deleted file mode 100644 index 97f9c47f..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.openecomp.vid.roles; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; - -import org.junit.Test; - - -public class RoleProviderTest { - - private RoleProvider createTestSubject() { - return new RoleProvider(); - } - - - @Test - public void testExtractRoleFromSession() throws Exception { - HttpServletRequest request = null; - List<String> result; - - // default test - result = RoleProvider.extractRoleFromSession(request); - } - - - @Test - public void testGetUserRoles() throws Exception { - RoleProvider testSubject; - HttpServletRequest request = null; - List<Role> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUserRoles(request); - } - - - @Test - public void testSplitRole() throws Exception { - RoleProvider testSubject; - String roleAsString = ""; - String[] result; - - // default test - testSubject = createTestSubject(); - result = testSubject.splitRole(roleAsString); - } - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java b/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java deleted file mode 100644 index fc050bae..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.openecomp.vid.roles; - -import org.junit.Test; -import org.openecomp.vid.mso.rest.RequestDetails; - -public class RoleValidatorTest { - - private RoleValidator createTestSubject() { - return new RoleValidator(null); - } - - @Test - public void testIsSubscriberPermitted() throws Exception { - RoleValidator testSubject; - String subscriberName = ""; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isSubscriberPermitted(subscriberName); - } - - @Test - public void testIsServicePermitted() throws Exception { - RoleValidator testSubject; - String subscriberName = ""; - String serviceType = ""; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isServicePermitted(subscriberName, serviceType); - } - - @Test - public void testIsMsoRequestValid() throws Exception { - RoleValidator testSubject; - RequestDetails mso_request = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isMsoRequestValid(mso_request); - } - - @Test - public void testIsTenantPermitted() throws Exception { - RoleValidator testSubject; - String globalCustomerId = ""; - String serviceType = ""; - String tenant = ""; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isTenantPermitted(globalCustomerId, serviceType, tenant); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java deleted file mode 100644 index df87ac07..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.roles; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RoleValidatorTest.class, RoleProviderTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java deleted file mode 100644 index 9041bdbf..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.Test; - - -public class GetTimeSlotsRestObjectTest { - - private GetTimeSlotsRestObject createTestSubject() { - return new GetTimeSlotsRestObject(); - } - - - @Test - public void testSetUUID() throws Exception { - GetTimeSlotsRestObject testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - - @Test - public void testGetUUID() throws Exception { - GetTimeSlotsRestObject testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java deleted file mode 100644 index 79e97884..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.Test; - - -public class PostCreateNewVnfRestObjectTest { - - private PostCreateNewVnfRestObject createTestSubject() { - return new PostCreateNewVnfRestObject(); - } - - - @Test - public void testSetUUID() throws Exception { - PostCreateNewVnfRestObject testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - - @Test - public void testGetUUID() throws Exception { - PostCreateNewVnfRestObject testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java deleted file mode 100644 index dd2e6f7c..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.Test; - - -public class PostSubmitVnfChangeRestObjectTest { - - private PostSubmitVnfChangeRestObject createTestSubject() { - return new PostSubmitVnfChangeRestObject(); - } - - - @Test - public void testSetUUID() throws Exception { - PostSubmitVnfChangeRestObject testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - - @Test - public void testGetUUID() throws Exception { - PostSubmitVnfChangeRestObject testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java deleted file mode 100644 index 5ab609ac..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.junit.Test; - - -public class RestObjectTest { - - private RestObject createTestSubject() { - return new RestObject(); - } - - - @Test - public void testSet() throws Exception { - RestObject testSubject; - T t = null; - - // default test - testSubject = createTestSubject(); - testSubject.set(t); - } - - - @Test - public void testGet() throws Exception { - RestObject testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.get(); - } - - - @Test - public void testSetStatusCode() throws Exception { - RestObject testSubject; - int v = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setStatusCode(v); - } - - - @Test - public void testGetStatusCode() throws Exception { - RestObject testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStatusCode(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java deleted file mode 100644 index 8e532142..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RestObjectTest.class, GetTimeSlotsRestObjectTest.class, PostSubmitVnfChangeRestObjectTest.class, - PostCreateNewVnfRestObjectTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java deleted file mode 100644 index 16675dd1..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.Test; - - -public class PostCreateNewVnfWrapperTest { - - private PostCreateNewVnfWrapper createTestSubject() { - return new PostCreateNewVnfWrapper(); - } - - - @Test - public void testGetUuid() throws Exception { - PostCreateNewVnfWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testSetUuid() throws Exception { - PostCreateNewVnfWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(v); - } - - - @Test - public void testToString() throws Exception { - PostCreateNewVnfWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetResponse() throws Exception { - PostCreateNewVnfWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java deleted file mode 100644 index ffe03bf0..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.Test; - - -public class PostSubmitVnfChangeTimeSlotsWrapperTest { - - private PostSubmitVnfChangeTimeSlotsWrapper createTestSubject() { - return new PostSubmitVnfChangeTimeSlotsWrapper(); - } - - - @Test - public void testGetUuid() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testSetUuid() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(v); - } - - - @Test - public void testToString() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetResponse() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java deleted file mode 100644 index c0fcb591..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.Test; - - -public class SchedulerResponseWrapperTest { - - private SchedulerResponseWrapper createTestSubject() { - return new SchedulerResponseWrapper(); - } - - - @Test - public void testGetEntity() throws Exception { - SchedulerResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEntity(); - } - - - @Test - public void testGetStatus() throws Exception { - SchedulerResponseWrapper testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStatus(); - } - - - @Test - public void testSetStatus() throws Exception { - SchedulerResponseWrapper testSubject; - int v = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setStatus(v); - } - - - @Test - public void testSetEntity() throws Exception { - SchedulerResponseWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEntity(v); - } - - - @Test - public void testToString() throws Exception { - SchedulerResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetResponse() throws Exception { - SchedulerResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java deleted file mode 100644 index a85a9f3d..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ PostSubmitVnfChangeTimeSlotsWrapperTest.class, PostCreateNewVnfWrapperTest.class, - SchedulerResponseWrapperTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java deleted file mode 100644 index 9dba924f..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.openecomp.vid.scheduler; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.json.simple.JSONObject; -import org.junit.Test; - -public class SchedulerRestInterfaceTest { - - private SchedulerRestInterface createTestSubject() { - return new SchedulerRestInterface(); - } - - - - @Test - public void testLogRequest() throws Exception { - SchedulerRestInterface testSubject; - JSONObject requestDetails = null; - - // default test - testSubject = createTestSubject(); - testSubject.logRequest(requestDetails); - } - - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java deleted file mode 100644 index 61ab05d0..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.scheduler; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ SchedulerRestInterfaceTest.class, org.openecomp.vid.scheduler.RestObjects.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java deleted file mode 100644 index 190b8c5a..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.rest; - -import org.junit.Test; - - -public class RequestDetailsTest { - - private RequestDetails createTestSubject() { - return new RequestDetails(); - } - - - @Test - public void testGetDomain() throws Exception { - RequestDetails testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDomain(); - } - - - @Test - public void testSetDomain() throws Exception { - RequestDetails testSubject; - String domain = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDomain(domain); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java deleted file mode 100644 index 714d0b08..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.scheduler.rest; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RequestDetailsTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceImplTest.java b/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceImplTest.java deleted file mode 100644 index bd1e72b7..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceImplTest.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.openecomp.vid.services; - -import static org.junit.Assert.*; -import java.util.*; - -import org.json.simple.JSONArray; -import org.junit.Assert; -import org.junit.Test; -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.changeManagement.RequestDetails; -import org.openecomp.vid.mso.rest.Request; -import org.springframework.http.ResponseEntity; - -public class ChangeManagementServiceImplTest { - - private ChangeManagementServiceImpl createTestSubject() { - return new ChangeManagementServiceImpl(); - } - - - /*@Test - public void testGetMSOChangeManagements() throws Exception { - ChangeManagementServiceImpl testSubject; - Collection<Request> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMSOChangeManagements(); - } - - - @Test - public void testFindRequestByVnfName() throws Exception { - ChangeManagementServiceImpl testSubject;List<RequestDetails> requests = null; - String vnfName = ""; - RequestDetails result; - - // test 1 - testSubject=createTestSubject();requests = null; - result=Deencapsulation.invoke(testSubject, "findRequestByVnfName", new Object[]{List<RequestDetails>.class, vnfName}); - Assert.assertEquals(null, result); - }*/ - - - @Test - public void testDoChangeManagement() throws Exception { - ChangeManagementServiceImpl testSubject; - ChangeManagementRequest request = null; - String vnfName = ""; - ResponseEntity<String> result; - - // test 1 - testSubject = createTestSubject(); - request = null; - result = testSubject.doChangeManagement(request, vnfName); - Assert.assertEquals(null, result); - } - - - @Test - public void testGetSchedulerChangeManagements() throws Exception { - ChangeManagementServiceImpl testSubject; - JSONArray result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSchedulerChangeManagements(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceTest.java deleted file mode 100644 index f770ab2a..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.openecomp.vid.services; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.changeManagement.ChangeManagementResponse; -import org.springframework.http.ResponseEntity; - -import junit.framework.Assert; - -import static org.junit.Assert.*; - - -public class ChangeManagementServiceTest { - @Before - public void setUp() throws Exception { - } - - @After - public void tearDown() throws Exception { - } - - @Test - public void doChangeManagement_requestTypeIsUpdateVnfNotFound_doUpdateAndReturnNull() throws Exception { - - } - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/services/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/services/TestSuite.java deleted file mode 100644 index c6c5eb1f..00000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/services/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.services; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ ChangeManagementServiceImplTest.class, ChangeManagementServiceTest.class }) -public class TestSuite { // nothing -} |