View Javadoc

1   /*
2    * Copyright 2013 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 1.0 (the
5    * "License"); you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl1.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations under
14   * the License.
15   */
16  package org.kuali.student.common.version;
17  
18  import org.junit.Assert;
19  import org.junit.Test;
20  import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
21  import org.slf4j.Logger;
22  import org.slf4j.LoggerFactory;
23  
24  /**
25   * 
26   * Test how to retrieve the rice version from its manifest.
27   *
28   * @author Kuali Student Team 
29   *
30   */
31  public class TestRetrieveRiceImplementationVersion {
32      private static final Logger log = LoggerFactory
33              .getLogger(TestRetrieveRiceImplementationVersion.class);
34  
35      /**
36       * 
37       */
38      public TestRetrieveRiceImplementationVersion() {
39      }
40      
41      @Test
42      public void testRetrieveRiceVersion () {
43          
44          String version = GlobalResourceLoader.class.getPackage().getImplementationVersion();
45          
46          Assert.assertNotNull(version);
47      }
48  }