001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
003     * agreements. See the NOTICE file distributed with this work for additional information regarding
004     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
005     * "License"); you may not use this file except in compliance with the License. You may obtain a
006     * copy of the License at
007     *
008     * http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software distributed under the License
011     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing permissions and limitations under
013     * the License.
014     */
015    
016    package org.apache.maven.lifecycle.internal.stub;
017    
018    import org.apache.maven.lifecycle.DefaultSchedules;
019    import org.apache.maven.lifecycle.Schedule;
020    import org.apache.maven.lifecycle.Scheduling;
021    
022    import java.util.Arrays;
023    import java.util.List;
024    
025    /**
026     * @author Kristian Rosenvold
027     */
028    
029    public class DefaultSchedulesStub
030    {
031        public static DefaultSchedules createDefaultSchedules()
032        {
033            return new DefaultSchedules( getSchedulingList() );
034        }
035    
036        public static List<Scheduling> getSchedulingList()
037        {
038            return Arrays.asList( new Scheduling( "default", Arrays.asList( new Schedule( "compile", false, false ),
039                                                                            new Schedule( "test", false, true ) ) ) );
040        }
041    }