@@ -116,25 +116,25 @@ public void testWriteOptionWithDestination() {
116
116
WriteOption writeOption = WriteOption .destination (LogDestinationName .project (PROJECT_NAME ));
117
117
LogDestinationName resource = (LogDestinationName ) writeOption .getValue ();
118
118
assertEquals (WriteOption .OptionType .LOG_DESTINATION , writeOption .getOptionType ());
119
- assertEquals (LogDestinationName .DestinationType .PROJECT , resource .getOptionType ());
120
- assertEquals (PROJECT_NAME , resource .getValue ());
119
+ assertEquals (LogDestinationName .DestinationType .PROJECT , resource .getDestinationType ());
120
+ assertEquals (PROJECT_NAME , resource .getId ());
121
121
122
122
writeOption = WriteOption .destination (LogDestinationName .billingAccount (BILLING_NAME ));
123
123
resource = (LogDestinationName ) writeOption .getValue ();
124
124
assertEquals (WriteOption .OptionType .LOG_DESTINATION , writeOption .getOptionType ());
125
- assertEquals (LogDestinationName .DestinationType .BILLINGACCOUNT , resource .getOptionType ());
126
- assertEquals (BILLING_NAME , resource .getValue ());
125
+ assertEquals (LogDestinationName .DestinationType .BILLINGACCOUNT , resource .getDestinationType ());
126
+ assertEquals (BILLING_NAME , resource .getId ());
127
127
128
128
writeOption = WriteOption .destination (LogDestinationName .folder (FOLDER_NAME ));
129
129
resource = (LogDestinationName ) writeOption .getValue ();
130
130
assertEquals (WriteOption .OptionType .LOG_DESTINATION , writeOption .getOptionType ());
131
- assertEquals (LogDestinationName .DestinationType .FOLDER , resource .getOptionType ());
132
- assertEquals (FOLDER_NAME , resource .getValue ());
131
+ assertEquals (LogDestinationName .DestinationType .FOLDER , resource .getDestinationType ());
132
+ assertEquals (FOLDER_NAME , resource .getId ());
133
133
134
134
writeOption = WriteOption .destination (LogDestinationName .organization (ORGANIZATION_NAME ));
135
135
resource = (LogDestinationName ) writeOption .getValue ();
136
136
assertEquals (WriteOption .OptionType .LOG_DESTINATION , writeOption .getOptionType ());
137
- assertEquals (LogDestinationName .DestinationType .ORGANIZATION , resource .getOptionType ());
138
- assertEquals (ORGANIZATION_NAME , resource .getValue ());
137
+ assertEquals (LogDestinationName .DestinationType .ORGANIZATION , resource .getDestinationType ());
138
+ assertEquals (ORGANIZATION_NAME , resource .getId ());
139
139
}
140
140
}
0 commit comments