swift-test-utils

Test utilities for use in Swift modules

License

License

GroupId

GroupId

com.facebook.swift
ArtifactId

ArtifactId

swift-test-utils
Last Version

Last Version

0.23.1
Release Date

Release Date

Type

Type

jar
Description

Description

swift-test-utils
Test utilities for use in Swift modules
Project Organization

Project Organization

Facebook, Inc.

Download swift-test-utils

How to add to project

<!-- https://jarcasting.com/artifacts/com.facebook.swift/swift-test-utils/ -->
<dependency>
    <groupId>com.facebook.swift</groupId>
    <artifactId>swift-test-utils</artifactId>
    <version>0.23.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.facebook.swift/swift-test-utils/
implementation 'com.facebook.swift:swift-test-utils:0.23.1'
// https://jarcasting.com/artifacts/com.facebook.swift/swift-test-utils/
implementation ("com.facebook.swift:swift-test-utils:0.23.1")
'com.facebook.swift:swift-test-utils:jar:0.23.1'
<dependency org="com.facebook.swift" name="swift-test-utils" rev="0.23.1">
  <artifact name="swift-test-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.facebook.swift', module='swift-test-utils', version='0.23.1')
)
libraryDependencies += "com.facebook.swift" % "swift-test-utils" % "0.23.1"
[com.facebook.swift/swift-test-utils "0.23.1"]

Dependencies

compile (3)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
com.google.code.findbugs : annotations jar 2.0.3
org.testng : testng jar 6.9.6

Project Modules

There are no modules declared in this project.

Project Status: 🚨 Unmaintained 🚨

This project is archived and no longer maintained. At the time of archiving, open issues and pull requests were closed and tagged with 2018-05-archive. For pre-existing users who need an open source alternative, we recommend taking a look at airlift/drift.

Swift

Swift is an easy-to-use, annotation-based Java library for creating Thrift serializable types and services.

Swift Codec

Swift Codec is a simple library specifying how Java objects are converted to and from Thrift. This library is similar to JaxB (XML) and Jackson (JSON), but for Thrift. Swift codec supports field, method, constructor, and builder injection. For example:

@ThriftStruct
public class LogEntry
{
    private final String category;
    private final String message;

    @ThriftConstructor
    public LogEntry(String category, String message)
    {
        this.category = category;
        this.message = message;
    }

    @ThriftField(1)
    public String getCategory()
    {
        return category;
    }

    @ThriftField(2)
    public String getMessage()
    {
        return message;
    }
}

Swift Service

Swift Service is a simple library annotating services to be exported with Thrift. For example:

@ThriftService("scribe")
public class InMemoryScribe
{
    private final List<LogEntry> messages = new ArrayList<>();

    public List<LogEntry> getMessages()
    {
        return messages;
    }

    @ThriftMethod("Log")
    public ResultCode log(List<LogEntry> messages)
    {
        this.messages.addAll(messages);
        return ResultCode.OK;
    }
}

Swift Generator

Swift Generator is a library that creates Java code usable with the Swift codec from Thrift IDL files and vice versa.

Swift Generator CLI and Swift2Thrift Generator CLI are command-line front-ends to this generator.

Swift Maven plugin

Swift Maven plugin allows using the code generator from a maven build and generate source code on the fly.

com.facebook.swift

Facebook

We are working to build community through open source technology. NB: members must have two-factor auth.

Versions

Version
0.23.1
0.23.0
0.22.1
0.22.0
0.21.1
0.21.0
0.20.0
0.19.2
0.19.1
0.19.0
0.18.1
0.18.0
0.17.0