26 lines
619 B
Swift
26 lines
619 B
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
import XCTest
|
|
@testable import AWSAPIPlugin
|
|
|
|
class AWSAPICategoryPluginResetTests: AWSAPICategoryPluginTestBase {
|
|
|
|
func testReset() async {
|
|
await apiPlugin.reset()
|
|
|
|
XCTAssertNotNil(apiPlugin.mapper)
|
|
XCTAssertEqual(apiPlugin.mapper.operations.count, 0)
|
|
XCTAssertEqual(apiPlugin.mapper.tasks.count, 0)
|
|
XCTAssertNil(apiPlugin.session)
|
|
XCTAssertNil(apiPlugin.pluginConfig)
|
|
XCTAssertNil(apiPlugin.authService)
|
|
apiPlugin = nil
|
|
}
|
|
|
|
}
|