@@ -36,12 +36,13 @@ void fmwInstallerProductIds() {
36
36
assertEquals (Utils .toSet (list1 ), FmwInstallerType .WLS .products (),
37
37
"WLS product list is incorrect or out of order" );
38
38
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 };
40
41
assertEquals (Utils .toSet (list2 ), FmwInstallerType .FMW .products (),
41
42
"FMW product list is incorrect or out of order" );
42
43
43
44
AruProduct [] list3 = {AruProduct .WLS , AruProduct .COH , AruProduct .FMWPLAT , AruProduct .JRF , AruProduct .JDEV ,
44
- AruProduct .SOA };
45
+ AruProduct .OPSS , AruProduct . OWSM , AruProduct . SOA };
45
46
assertEquals (Utils .toSet (list3 ), FmwInstallerType .SOA .products (),
46
47
"SOA product list is incorrect or out of order" );
47
48
}
@@ -56,11 +57,13 @@ void fmwInstallerFromValue() {
56
57
57
58
@ Test
58
59
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" ));
62
65
// 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" ));
64
67
assertNull (FmwInstallerType .fromProductList ("" ));
65
68
assertNull (FmwInstallerType .fromProductList (null ));
66
69
}
0 commit comments