Example usage for com.google.common.collect ImmutableSortedSet of

List of usage examples for com.google.common.collect ImmutableSortedSet of

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSortedSet of.

Prototype

static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9) 

Source Link

Document

Returns an unmodifiable set containing nine elements.

Usage

From source file:ezbake.security.EzSecurityClientIT.java

@Test
public void appInfoExclude() throws TException {
    EzSecurityToken token = ezbakeSecurityClient.fetchAppToken(App, Sets.newHashSet("ezbake", "USA"));
    assertEquals(App, token.getTokenPrincipal().getPrincipal());
    Set<String> l1 = ImmutableSortedSet.of("high", "servant", "carry", "help", "protect", "nan", "Stark",
            "42six", "CSC");
    assertEquals(l1, ImmutableSortedSet.copyOf(token.getAuthorizations().getFormalAuthorizations()));
}