Package com.facebook.swift.codec

Examples of com.facebook.swift.codec.ThriftCodecManager


public class TestCompilerToReflectionThriftCodecFactory extends AbstractThriftCodecManagerTest
{
    @Override
    public ThriftCodecManager createReadCodecManager()
    {
        return new ThriftCodecManager(new ReflectionThriftCodecFactory());
    }
View Full Code Here


    }

    @Override
    public ThriftCodecManager createWriteCodecManager()
    {
        return new ThriftCodecManager(new CompilerThriftCodecFactory(true));
    }
View Full Code Here

public class TestReflectionToCompilerThriftCodecFactory extends AbstractThriftCodecManagerTest
{
    @Override
    public ThriftCodecManager createReadCodecManager()
    {
        return new ThriftCodecManager(new CompilerThriftCodecFactory(true));
    }
View Full Code Here

    }

    @Override
    public ThriftCodecManager createWriteCodecManager()
    {
        return new ThriftCodecManager(new ReflectionThriftCodecFactory());
    }
View Full Code Here

            });
    private final Set<ThriftClientEventHandler> globalEventHandlers;

    public ThriftClientManager()
    {
        this(new ThriftCodecManager());
    }
View Full Code Here

public class TestReflectionThriftCodecFactory extends AbstractThriftCodecManagerTest
{
    @Override
    public ThriftCodecManager createCodecManager()
    {
        return new ThriftCodecManager(new ReflectionThriftCodecFactory());
    }
View Full Code Here

public class TestCompilerThriftCodecFactory extends AbstractThriftCodecManagerTest
{
    @Override
    public ThriftCodecManager createCodecManager()
    {
        return new ThriftCodecManager(new CompilerThriftCodecFactory(true));
    }
View Full Code Here

    @BeforeMethod(alwaysRun = true)
    private void setup()
            throws IllegalAccessException, InstantiationException, TException
    {
        codecManager = new ThriftCodecManager();
        clientManager = new ThriftClientManager(codecManager);
        asyncServer = createAsyncServer();
    }
View Full Code Here

    @Test
    public void testSwiftService()
            throws Exception
    {
        SwiftScribe scribeService = new SwiftScribe();
        TProcessor processor = new ThriftServiceProcessor(new ThriftCodecManager(), scribeService);

        List<LogEntry> messages = testProcessor(processor);
        assertEquals(scribeService.getMessages(), newArrayList(concat(toSwiftLogEntry(messages), toSwiftLogEntry(messages))));
    }
View Full Code Here

    @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = "duplicate key.*")
    public void testConflictingServices()
            throws Exception
    {
        new ThriftServiceProcessor(new ThriftCodecManager(), new SwiftScribe(), new ConflictingLogService());
    }
View Full Code Here

TOP

Related Classes of com.facebook.swift.codec.ThriftCodecManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.