 
                        
        
                        
        io.camunda.zeebe.process.test.engine.agent.ZeebeProcessTestEngine Maven / Gradle / Ivy
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Zeebe Community License 1.1. You may not use this file
 * except in compliance with the Zeebe Community License 1.1.
 */
package io.camunda.zeebe.process.test.engine.agent;
import io.camunda.zeebe.process.test.api.ZeebeTestEngine;
import io.camunda.zeebe.process.test.engine.EngineFactory;
import io.grpc.Server;
import io.grpc.ServerBuilder;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ZeebeProcessTestEngine {
  private static final Logger LOG = LoggerFactory.getLogger(ZeebeProcessTestEngine.class);
  public static void main(final String[] args) throws IOException {
    final ZeebeTestEngine engine = EngineFactory.create(AgentProperties.getGatewayPort());
    final EngineControlImpl engineService = new EngineControlImpl(engine);
    final Server server =
        ServerBuilder.forPort(AgentProperties.getControllerPort())
            .addService(engineService)
            .build();
    server.start();
    // In the testcontainer extension we are waiting for this line to be logged before continuing
    // test execution. If this log gets changed please also change the extension!
    LOG.info("ZeebeProcessTestEngine container has started ...");
  }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy