summaryrefslogtreecommitdiff
path: root/swift/test/Ice/operations/Oneways.swift
blob: 6c67113af3ca844cb63bdc9ad6596db519cda24b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

import Ice
import TestCommon

func oneways(_ helper: TestHelper, _ prx: MyClassPrx) throws {
    let p = prx.ice_oneway()

    try p.ice_ping()
    try p.opVoid()
    try p.opIdempotent()
    try p.opNonmutating()

    do {
        _ = try p.opByte(p1: 0xFF, p2: 0x0F)
        try helper.test(false)
    } catch is Ice.TwowayOnlyException {}
}