1 /******************************************************************************
2 * Copyright (c) 2000-2015 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
7 ******************************************************************************/
8 package org
.eclipse
.titan
.executorapi
.test
;
10 import java
.util
.List
;
12 import org
.eclipse
.titan
.executor
.jni
.McStateEnum
;
13 import org
.eclipse
.titan
.executorapi
.JniExecutor
;
14 import org
.eclipse
.titan
.executorapi
.exception
.JniExecutorException
;
15 import org
.eclipse
.titan
.executorapi
.test
.JniExecutorAsyncHappyTest
.ExecutionMethod
;
16 import org
.eclipse
.titan
.executorapi
.test
.JniExecutorAsyncHappyTest
.McRoute
;
17 import org
.eclipse
.titan
.executorapi
.util
.Log
;
22 * route 1: MC_LISTENING -> startHostControllers() -> MC_HC_CONNECTED -> configure() ->(MC_CONFIGURING) -> MC_ACTIVE
25 class Test1Observer
extends TestObserverBase
{
27 public Test1Observer( final JniExecutor aJe
, final String aModule
, final List
<String
> aTestcases
) {
28 super( aJe
, McRoute
.ROUTE_1
, ExecutionMethod
.TEST_CASE
);
30 setTestcases(aTestcases
);
34 public void statusChanged2( final McStateEnum aNewState
) throws JniExecutorException
{
41 if ( mTestcases
.size() > 0 ) {
45 mJe
.shutdownSession();
49 if ( mTestcases
.size() > 0 ) {
50 mJe
.executeTestcase( mModule
, mTestcases
.remove( 0 ) );