Seite 1 von 1

Array: linear search

Verfasst: 1. Jul 2017 14:16
von Yogi
Hallo,

ich bekomme diese Fehlermeldung:
Antwort des Servers
Compilerreport
Consoleline 0 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:3: error: package org.junit does not exist
Consoleline 1 – import static org.junit.Assert.*;
Consoleline 2 – ^
Consoleline 3 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:5: error: package org.junit does not exist
Consoleline 4 – import org.junit.Before;
Consoleline 5 – ^
Consoleline 6 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:6: error: package org.junit does not exist
Consoleline 7 – import org.junit.BeforeClass;
Consoleline 8 – ^
Consoleline 9 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:7: error: package org.junit does not exist
Consoleline 10 – import org.junit.Test;
Consoleline 11 – ^
Consoleline 12 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:52: error: cannot find symbol
Consoleline 13 – @BeforeClass
Consoleline 14 – ^
Consoleline 15 – symbol: class BeforeClass
Consoleline 16 – location: class LinearSearchTest
Consoleline 17 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:70: error: cannot find symbol
Consoleline 18 – @Before
Consoleline 19 – ^
Consoleline 20 – symbol: class Before
Consoleline 21 – location: class LinearSearchTest
Consoleline 22 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:94: error: cannot find symbol
Consoleline 23 – @Test(timeout = 30)
Consoleline 24 – ^
Consoleline 25 – symbol: class Test
Consoleline 26 – location: class LinearSearchTest
Consoleline 27 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:110: error: cannot find symbol
Consoleline 28 – @Test(timeout = 30)
Consoleline 29 – ^
Consoleline 30 – symbol: class Test
Consoleline 31 – location: class LinearSearchTest
Consoleline 32 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:127: error: cannot find symbol
Consoleline 33 – @Test(timeout = 30)
Consoleline 34 – ^
Consoleline 35 – symbol: class Test
Consoleline 36 – location: class LinearSearchTest
Consoleline 37 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:144: error: cannot find symbol
Consoleline 38 – @Test(timeout = 30)
Consoleline 39 – ^
Consoleline 40 – symbol: class Test
Consoleline 41 – location: class LinearSearchTest
Consoleline 42 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:161: error: cannot find symbol
Consoleline 43 – @Test(timeout = 30)
Consoleline 44 – ^
Consoleline 45 – symbol: class Test
Consoleline 46 – location: class LinearSearchTest
Consoleline 47 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:176: error: cannot find symbol
Consoleline 48 – @Test(timeout = 30)
Consoleline 49 – ^
Consoleline 50 – symbol: class Test
Consoleline 51 – location: class LinearSearchTest
Consoleline 52 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:193: error: cannot find symbol
Consoleline 53 – @Test(timeout = 3)
Consoleline 54 – ^
Consoleline 55 – symbol: class Test
Consoleline 56 – location: class LinearSearchTest
Consoleline 57 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:209: error: cannot find symbol
Consoleline 58 – @Test(timeout = 10)
Consoleline 59 – ^
Consoleline 60 – symbol: class Test
Consoleline 61 – location: class LinearSearchTest
Consoleline 62 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:225: error: cannot find symbol
Consoleline 63 – @Test(timeout = 10)
Consoleline 64 – ^
Consoleline 65 – symbol: class Test
Consoleline 66 – location: class LinearSearchTest
Consoleline 67 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:239: error: cannot find symbol
Consoleline 68 – @Test(timeout = 30)
Consoleline 69 – ^
Consoleline 70 – symbol: class Test
Consoleline 71 – location: class LinearSearchTest
Consoleline 72 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:253: error: cannot find symbol
Consoleline 73 – @Test(timeout = 30)
Consoleline 74 – ^
Consoleline 75 – symbol: class Test
Consoleline 76 – location: class LinearSearchTest
Consoleline 77 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:267: error: cannot find symbol
Consoleline 78 – @Test(timeout = 100)
Consoleline 79 – ^
Consoleline 80 – symbol: class Test
Consoleline 81 – location: class LinearSearchTest
Consoleline 82 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:373: error: cannot find symbol
Consoleline 83 – @Test(timeout = 60)
Consoleline 84 – ^
Consoleline 85 – symbol: class Test
Consoleline 86 – location: class LinearSearchTest
Consoleline 87 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:492: error: cannot find symbol
Consoleline 88 – @Test(timeout = 40)
Consoleline 89 – ^
Consoleline 90 – symbol: class Test
Consoleline 91 – location: class LinearSearchTest
Consoleline 92 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/tmp/array/search/exercise_linearSearch/LinearSearch.java:69: error: cannot find symbol
Consoleline 93 – if (0 == cmp.compare(this.getElem(), this.getArrayElement(i)))
Consoleline 94 – ^
Consoleline 95 – symbol: method getArrayElement(int)
Consoleline 96 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:101: error: cannot find symbol
Consoleline 97 – assertEquals("The result should be -1. In array with payload [3, 7, 1] is 42 not contained.", -1,
Consoleline 98 – ^
Consoleline 99 – symbol: method assertEquals(String,int,int)
Consoleline 100 – location: class LinearSearchTest
Consoleline 101 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:103: error: cannot find symbol
Consoleline 102 – assertEquals("There should be 3 compare calls, because the testarray has 3 components!", 3,
Consoleline 103 – ^
Consoleline 104 – symbol: method assertEquals(String,int,int)
Consoleline 105 – location: class LinearSearchTest
Consoleline 106 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:117: error: cannot find symbol
Consoleline 107 – assertEquals(
Consoleline 108 – ^
Consoleline 109 – symbol: method assertEquals(String,int,int)
Consoleline 110 – location: class LinearSearchTest
Consoleline 111 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:120: error: cannot find symbol
Consoleline 112 – assertEquals("There should be 4 compare calls, because the testarray has 4 components!", 4,
Consoleline 113 – ^
Consoleline 114 – symbol: method assertEquals(String,int,int)
Consoleline 115 – location: class LinearSearchTest
Consoleline 116 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:135: error: cannot find symbol
Consoleline 117 – assertEquals(
Consoleline 118 – ^
Consoleline 119 – symbol: method assertEquals(String,int,int)
Consoleline 120 – location: class LinearSearchTest
Consoleline 121 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:138: error: cannot find symbol
Consoleline 122 – assertTrue("the method getArraylength() was never used!", 0 < lsChar.getUseGet());
Consoleline 123 – ^
Consoleline 124 – symbol: method assertTrue(String,boolean)
Consoleline 125 – location: class LinearSearchTest
Consoleline 126 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:152: error: cannot find symbol
Consoleline 127 – assertEquals("The result should be -1. In array with payload [Hallo, Uni, Algo] is TU not contained.", -1,
Consoleline 128 – ^
Consoleline 129 – symbol: method assertEquals(String,int,int)
Consoleline 130 – location: class LinearSearchTest
Consoleline 131 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:154: error: cannot find symbol
Consoleline 132 – assertEquals("There should be 3 compare calls, because the testarray has 3 components!", 3,
Consoleline 133 – ^
Consoleline 134 – symbol: method assertEquals(String,int,int)
Consoleline 135 – location: class LinearSearchTest
Consoleline 136 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:168: error: cannot find symbol
Consoleline 137 – assertEquals("The result should be 1. In array with payload [3, 3, 3, 7, 1] is 7 contained.", 3,
Consoleline 138 – ^
Consoleline 139 – symbol: method assertEquals(String,int,int)
Consoleline 140 – location: class LinearSearchTest
Consoleline 141 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:170: error: cannot find symbol
Consoleline 142 – assertTrue("the method getArraylength() was never used!", 0 < lsInt.getUseGet());
Consoleline 143 – ^
Consoleline 144 – symbol: method assertTrue(String,boolean)
Consoleline 145 – location: class LinearSearchTest
Consoleline 146 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:184: error: cannot find symbol
Consoleline 147 – assertEquals(
Consoleline 148 – ^
Consoleline 149 – symbol: method assertEquals(String,int,int)
Consoleline 150 – location: class LinearSearchTest
Consoleline 151 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:187: error: cannot find symbol
Consoleline 152 – assertTrue("the method getArraylength() was never used!", 0 < lsDouble.getUseGet());
Consoleline 153 – ^
Consoleline 154 – symbol: method assertTrue(String,boolean)
Consoleline 155 – location: class LinearSearchTest
Consoleline 156 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:200: error: cannot find symbol
Consoleline 157 – assertEquals(
Consoleline 158 – ^
Consoleline 159 – symbol: method assertEquals(String,int,int)
Consoleline 160 – location: class LinearSearchTest
Consoleline 161 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:203: error: cannot find symbol
Consoleline 162 – assertTrue("the method getArraylength() was never used!", 0 < lsChar.getUseGet());
Consoleline 163 – ^
Consoleline 164 – symbol: method assertTrue(String,boolean)
Consoleline 165 – location: class LinearSearchTest
Consoleline 166 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:216: error: cannot find symbol
Consoleline 167 – assertEquals(
Consoleline 168 – ^
Consoleline 169 – symbol: method assertEquals(String,int,int)
Consoleline 170 – location: class LinearSearchTest
Consoleline 171 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:219: error: cannot find symbol
Consoleline 172 – assertTrue("the method getArraylength() was never used!", 0 < lsString.getUseGet());
Consoleline 173 – ^
Consoleline 174 – symbol: method assertTrue(String,boolean)
Consoleline 175 – location: class LinearSearchTest
Consoleline 176 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:232: error: cannot find symbol
Consoleline 177 – assertEquals("the empty list should return -1", -1, lsInt.linearSearch());
Consoleline 178 – ^
Consoleline 179 – symbol: method assertEquals(String,int,int)
Consoleline 180 – location: class LinearSearchTest
Consoleline 181 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:233: error: cannot find symbol
Consoleline 182 – assertEquals("the method getArraylength() was never used!", 1, lsInt.getUseGet());
Consoleline 183 – ^
Consoleline 184 – symbol: method assertEquals(String,int,int)
Consoleline 185 – location: class LinearSearchTest
Consoleline 186 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:245: error: cannot find symbol
Consoleline 187 – assertEquals(" test should return -1 if you search for null", -1, lsChar.linearSearch());
Consoleline 188 – ^
Consoleline 189 – symbol: method assertEquals(String,int,int)
Consoleline 190 – location: class LinearSearchTest
Consoleline 191 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:246: error: cannot find symbol
Consoleline 192 – assertTrue("the method getElem() was never used!", 0 < lsChar.getGetElemCallCounter());
Consoleline 193 – ^
Consoleline 194 – symbol: method assertTrue(String,boolean)
Consoleline 195 – location: class LinearSearchTest
Consoleline 196 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:260: error: cannot find symbol
Consoleline 197 – assertEquals("Algorithm couldnt handle null positions in the list", 4, lsDouble.linearSearch());
Consoleline 198 – ^
Consoleline 199 – symbol: method assertEquals(String,int,int)
Consoleline 200 – location: class LinearSearchTest
Consoleline 201 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:261: error: cannot find symbol
Consoleline 202 – assertTrue("the method getArraylength() was never used!", 0 < lsDouble.getUseGet());
Consoleline 203 – ^
Consoleline 204 – symbol: method assertTrue(String,boolean)
Consoleline 205 – location: class LinearSearchTest
Consoleline 206 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:354: error: cannot find symbol
Consoleline 207 – assertTrue(dynamicTest_steps_strings(logger, arLen), steps <= maxSteps && steps > 0);
Consoleline 208 – ^
Consoleline 209 – symbol: method assertTrue(String,boolean)
Consoleline 210 – location: class LinearSearchTest
Consoleline 211 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:424: error: cannot find symbol
Consoleline 212 – assertTrue(dynamicTest_result_strings(lsDyn, lsRef, s),
Consoleline 213 – ^
Consoleline 214 – symbol: method assertTrue(String,boolean)
Consoleline 215 – location: class LinearSearchTest
Consoleline 216 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:436: error: cannot find symbol
Consoleline 217 – assertTrue(dynamicTest_result_strings(lsDyn, lsRef, s),
Consoleline 218 – ^
Consoleline 219 – symbol: method assertTrue(String,boolean)
Consoleline 220 – location: class LinearSearchTest
Consoleline 221 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:450: error: cannot find symbol
Consoleline 222 – assertTrue(dynamicTest_result_strings(lsDyn, lsRef, s),
Consoleline 223 – ^
Consoleline 224 – symbol: method assertTrue(String,boolean)
Consoleline 225 – location: class LinearSearchTest
Consoleline 226 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:463: error: cannot find symbol
Consoleline 227 – assertTrue(dynamicTest_result_strings(lsDyn, lsRef, s),
Consoleline 228 – ^
Consoleline 229 – symbol: method assertTrue(String,boolean)
Consoleline 230 – location: class LinearSearchTest
Consoleline 231 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:516: error: cannot find symbol
Consoleline 232 – assertTrue(toomuchcompares, logger.getCounter() <= resultSearch + 1);
Consoleline 233 – ^
Consoleline 234 – symbol: method assertTrue(String,boolean)
Consoleline 235 – location: class LinearSearchTest
Consoleline 236 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:518: error: cannot find symbol
Consoleline 237 – assertTrue(toomuchsearchsteps, logger.getCounter() <= testdata.length);
Consoleline 238 – ^
Consoleline 239 – symbol: method assertTrue(String,boolean)
Consoleline 240 – location: class LinearSearchTest
Consoleline 241 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:519: error: cannot find symbol
Consoleline 242 – assertTrue(neverUsed, 0 < duut.getUseGet());
Consoleline 243 – ^
Consoleline 244 – symbol: method assertTrue(String,boolean)
Consoleline 245 – location: class LinearSearchTest
Consoleline 246 – /home/tomcat/apache-tomcat-8.5.16/exercise/f774a749-e1c5-458f-900d-74005a76370e/test/array/search/tests_linearSearch/LinearSearchTest.java:520: error: cannot find symbol
Consoleline 247 – assertTrue("At least one time the searched element must be called.", 0 < duut.getGetElemCallCounter());
Consoleline 248 – ^
Consoleline 249 – symbol: method assertTrue(String,boolean)
Consoleline 250 – location: class LinearSearchTest
Consoleline 251 – Note: Some input files use unchecked or unsafe operations.
Consoleline 252 – Note: Recompile with -Xlint:unchecked for details.
Consoleline 253 – 52 errors

Re: Array: linear search

Verfasst: 1. Jul 2017 14:44
von luedecke
Hallo,

der Kollege hat da etwas vergessen. Er kümmert sich jeden Augenblick darum.

EDIT: Sollte jetzt gelöst sein.