/*
 * (C) Copyright 2015 Kurento (http://kurento.org/)
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl-2.1.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 */
package org.kurento.test.services;

import static org.kurento.test.config.TestConfiguration.FAKE_KMS_AUTOSTART_DEFAULT;
import static org.kurento.test.config.TestConfiguration.FAKE_KMS_AUTOSTART_PROP;
import static org.kurento.test.config.TestConfiguration.FAKE_KMS_LOGIN_PROP;
import static org.kurento.test.config.TestConfiguration.FAKE_KMS_PASSWD_PROP;
import static org.kurento.test.config.TestConfiguration.FAKE_KMS_PEM_PROP;
import static org.kurento.test.config.TestConfiguration.FAKE_KMS_WS_URI_PROP;

/**
 * Fake Kurento Media Server service.
 * 
 * @author Boni Garcia (bgarcia@gsyc.es)
 * @since 6.1.1
 */
public class FakeKmsService extends KmsService {

	public FakeKmsService() {
		this.kmsLoginProp = FAKE_KMS_LOGIN_PROP;
		this.kmsPasswdProp = FAKE_KMS_PASSWD_PROP;
		this.kmsPemProp = FAKE_KMS_PEM_PROP;
		this.kmsAutostartProp = FAKE_KMS_AUTOSTART_PROP;
		this.kmsAutostartDefault = FAKE_KMS_AUTOSTART_DEFAULT;
		this.kmsWsUriProp = FAKE_KMS_WS_URI_PROP;
	}

}

@@ -620,16 +620,81 @@
 vices;%0A%0A
+import static org.kurento.commons.PropertiesManager.getProperty;%0A
 import s
@@ -1622,14 +1622,56 @@
 I_PROP;%0A
+%09%09%0A%09%09setWsUri(getProperty(kmsWsUriProp));%0A
 %09%7D%0A%0A%7D%0A

Set correct Kms url in KmsFakeServer