Commit d21b0aa1 authored by Luc Maisonobe's avatar Luc Maisonobe

New tests.

parent 2bd83439
/* Copyright 2002-2021 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.orekit.files.ccsds.ndm.adm.apm;
import org.junit.Test;
import org.orekit.files.ccsds.ndm.AbstractNdmWriterTest;
import org.orekit.files.ccsds.ndm.ParserBuilder;
import org.orekit.files.ccsds.ndm.WriterBuilder;
import org.orekit.files.ccsds.ndm.adm.AdmMetadata;
import org.orekit.files.ccsds.section.Header;
import org.orekit.files.ccsds.section.Segment;
public class ApmWriterTest extends AbstractNdmWriterTest<Header, Segment<AdmMetadata, ApmData>, ApmFile> {
protected ApmParser getParser() {
return new ParserBuilder().buildApmParser();
}
protected ApmWriter getWriter() {
return new WriterBuilder().buildApmWriter();
}
@Test
public void testWriteExample1() {
doTest("/ccsds/adm/apm/APMExample1.txt");
}
@Test
public void testWriteKvnExample2() {
doTest("/ccsds/adm/apm/APMExample2.txt");
}
@Test
public void testWriteXmlExample2() {
doTest("/ccsds/adm/apm/APMExample2.xml");
}
@Test
public void testWriteExample3() {
doTest("/ccsds/adm/apm/APMExample3.txt");
}
@Test
public void testWriteExample4() {
doTest("/ccsds/adm/apm/APMExample4.txt");
}
@Test
public void testWriteExample5() {
doTest("/ccsds/adm/apm/APMExample5.txt");
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment