Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / auth / auth-core / src / test / java / org / onap / aaf / auth / local / test / JU_DataFile.java
1 /**
2  * ============LICENSE_START====================================================
3  * org.onap.aaf
4  * ===========================================================================
5  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6  * ===========================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END====================================================
19  *
20  */
21 package org.onap.aaf.auth.local.test;
22
23 import java.io.File;
24 import java.util.ArrayList;
25 import java.util.List;
26 import static org.junit.Assert.*;
27 import org.junit.AfterClass;
28 import org.junit.Test;
29 import org.onap.aaf.auth.local.DataFile;
30 import org.onap.aaf.auth.local.DataFile.Token;
31 import org.onap.aaf.auth.local.DataFile.Token.Field;
32
33 public class JU_DataFile {
34
35     @AfterClass
36     public static void tearDownAfterClass() throws Exception {
37     }
38
39 //    @Test
40 //    public void netYetTested() {
41 //        fail("Tests not yet implemented");
42 //    }
43     
44 //    @Test
45 //    public void test() throws Exception {
46 //        File file = new File("../authz-batch/data/v1.dat");
47 //        DataFile df = new DataFile(file,"r");
48 //        int count = 0;
49 //        List<String> list = new ArrayList<>();
50 //        try {
51 //            df.open();
52 //            Token tok = df.new Token(1024000);
53 //            Field fld = tok.new Field('|');
54 //    
55 //            while(tok.nextLine()) {
56 //                ++count;
57 //                fld.reset();
58 //                list.add(fld.at(0));
59 //            }
60 ////            Collections.sort(list);
61 //            for(String s: list) {
62 //                System.out.println(s);
63 //
64 //            }
65 //        } finally {
66 //            System.out.printf("%15s:%12d\n","Total",count);
67 //        }
68 //    }
69
70 }