@@ -36,12 +36,13 @@ void fmwInstallerProductIds() {
3636 assertEquals (Utils .toSet (list1 ), FmwInstallerType .WLS .products (),
3737 "WLS product list is incorrect or out of order" );
3838
39- AruProduct [] list2 = {AruProduct .WLS , AruProduct .COH , AruProduct .FMWPLAT , AruProduct .JRF , AruProduct .JDEV };
39+ AruProduct [] list2 = {AruProduct .WLS , AruProduct .COH , AruProduct .FMWPLAT , AruProduct .JRF , AruProduct .JDEV ,
40+ AruProduct .OPSS , AruProduct .OWSM };
4041 assertEquals (Utils .toSet (list2 ), FmwInstallerType .FMW .products (),
4142 "FMW product list is incorrect or out of order" );
4243
4344 AruProduct [] list3 = {AruProduct .WLS , AruProduct .COH , AruProduct .FMWPLAT , AruProduct .JRF , AruProduct .JDEV ,
44- AruProduct .SOA };
45+ AruProduct .OPSS , AruProduct . OWSM , AruProduct . SOA };
4546 assertEquals (Utils .toSet (list3 ), FmwInstallerType .SOA .products (),
4647 "SOA product list is incorrect or out of order" );
4748 }
@@ -56,11 +57,13 @@ void fmwInstallerFromValue() {
5657
5758 @ Test
5859 void fromProductList () {
59- assertEquals (FmwInstallerType .WLS , FmwInstallerType .fromProductList ("WLS,COH,TOPLINK" ));
60- assertEquals (FmwInstallerType .FMW , FmwInstallerType .fromProductList ("INFRA,WLS,COH,TOPLINK" ));
61- assertEquals (FmwInstallerType .SOA_OSB , FmwInstallerType .fromProductList ("INFRA,WLS,COH,TOPLINK,BPM,SOA,OSB" ));
60+ final String WLS_PRODUCTS = "WLS,COH,TOPLINK" ;
61+ final String FMW_PRODUCTS = WLS_PRODUCTS + ",INFRA,OPSS,OWSM" ;
62+ assertEquals (FmwInstallerType .WLS , FmwInstallerType .fromProductList (WLS_PRODUCTS ));
63+ assertEquals (FmwInstallerType .FMW , FmwInstallerType .fromProductList (FMW_PRODUCTS ));
64+ assertEquals (FmwInstallerType .SOA_OSB , FmwInstallerType .fromProductList (FMW_PRODUCTS + ",BPM,SOA,OSB" ));
6265 // Ignore unsupported products, but keep as many products as possible that ARE known
63- assertEquals (FmwInstallerType .FMW , FmwInstallerType .fromProductList ("INFRA,WLS,COH,TOPLINK ,OIM" ));
66+ assertEquals (FmwInstallerType .FMW , FmwInstallerType .fromProductList (FMW_PRODUCTS + " ,OIM" ));
6467 assertNull (FmwInstallerType .fromProductList ("" ));
6568 assertNull (FmwInstallerType .fromProductList (null ));
6669 }
0 commit comments