30 lines
785 B
Swift
30 lines
785 B
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
import XCTest
|
|
@testable import AWSAPICategoryPlugin
|
|
|
|
class AWSAPICategoryPluginResetTests: AWSAPICategoryPluginTestBase {
|
|
|
|
func testReset() {
|
|
let completedInvoked = expectation(description: "onComplete is invoked")
|
|
apiPlugin.reset {
|
|
completedInvoked.fulfill()
|
|
}
|
|
|
|
waitForExpectations(timeout: 1)
|
|
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
|
|
}
|
|
|
|
}
|