1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
12 ******************************************************************************/
13 package org
.eclipse
.titan
.executorapi
.test
;
15 import java
.util
.List
;
17 import org
.eclipse
.titan
.executor
.jni
.McStateEnum
;
18 import org
.eclipse
.titan
.executorapi
.JniExecutor
;
19 import org
.eclipse
.titan
.executorapi
.exception
.JniExecutorException
;
20 import org
.eclipse
.titan
.executorapi
.test
.JniExecutorAsyncHappyTest
.ExecutionMethod
;
21 import org
.eclipse
.titan
.executorapi
.test
.JniExecutorAsyncHappyTest
.McRoute
;
22 import org
.eclipse
.titan
.executorapi
.util
.Log
;
27 * route 1: MC_LISTENING -> startHostControllers() -> MC_HC_CONNECTED -> configure() ->(MC_CONFIGURING) -> MC_ACTIVE
30 class Test1Observer
extends TestObserverBase
{
32 public Test1Observer( final JniExecutor aJe
, final String aModule
, final List
<String
> aTestcases
) {
33 super( aJe
, McRoute
.ROUTE_1
, ExecutionMethod
.TEST_CASE
);
35 setTestcases(aTestcases
);
39 public void statusChanged2( final McStateEnum aNewState
) throws JniExecutorException
{
46 if ( mTestcases
.size() > 0 ) {
50 mJe
.shutdownSession();
54 if ( mTestcases
.size() > 0 ) {
55 mJe
.executeTestcase( mModule
, mTestcases
.remove( 0 ) );