Repository: hbase-site Updated Branches: refs/heads/asf-site 8450b1941 -> 46d8bc289
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/46d8bc28/testdevapidocs/src-html/org/apache/hadoop/hbase/rsgroup/TestRSGroupsWithACL.html ---------------------------------------------------------------------- diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/rsgroup/TestRSGroupsWithACL.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/rsgroup/TestRSGroupsWithACL.html index b4f4bf5..a4a79df 100644 --- a/testdevapidocs/src-html/org/apache/hadoop/hbase/rsgroup/TestRSGroupsWithACL.html +++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/rsgroup/TestRSGroupsWithACL.html @@ -231,119 +231,115 @@ <span class="sourceLineNo">223</span> return null;<a name="line.223"></a> <span class="sourceLineNo">224</span> };<a name="line.224"></a> <span class="sourceLineNo">225</span><a name="line.225"></a> -<span class="sourceLineNo">226</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.226"></a> -<span class="sourceLineNo">227</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.227"></a> -<span class="sourceLineNo">228</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.228"></a> -<span class="sourceLineNo">229</span> }<a name="line.229"></a> -<span class="sourceLineNo">230</span><a name="line.230"></a> -<span class="sourceLineNo">231</span> @Test<a name="line.231"></a> -<span class="sourceLineNo">232</span> public void testGetRSGroupInfoOfTable() throws Exception {<a name="line.232"></a> -<span class="sourceLineNo">233</span> AccessTestAction action = () -> {<a name="line.233"></a> -<span class="sourceLineNo">234</span> rsGroupAdminEndpoint.checkPermission("getRSGroupInfoOfTable");<a name="line.234"></a> -<span class="sourceLineNo">235</span> return null;<a name="line.235"></a> -<span class="sourceLineNo">236</span> };<a name="line.236"></a> -<span class="sourceLineNo">237</span><a name="line.237"></a> -<span class="sourceLineNo">238</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.238"></a> -<span class="sourceLineNo">239</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.239"></a> -<span class="sourceLineNo">240</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.240"></a> -<span class="sourceLineNo">241</span> }<a name="line.241"></a> -<span class="sourceLineNo">242</span><a name="line.242"></a> -<span class="sourceLineNo">243</span> @Test<a name="line.243"></a> -<span class="sourceLineNo">244</span> public void testMoveServers() throws Exception {<a name="line.244"></a> -<span class="sourceLineNo">245</span> AccessTestAction action = () -> {<a name="line.245"></a> -<span class="sourceLineNo">246</span> rsGroupAdminEndpoint.checkPermission("moveServers");<a name="line.246"></a> -<span class="sourceLineNo">247</span> return null;<a name="line.247"></a> -<span class="sourceLineNo">248</span> };<a name="line.248"></a> -<span class="sourceLineNo">249</span><a name="line.249"></a> -<span class="sourceLineNo">250</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.250"></a> -<span class="sourceLineNo">251</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.251"></a> -<span class="sourceLineNo">252</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.252"></a> -<span class="sourceLineNo">253</span> }<a name="line.253"></a> -<span class="sourceLineNo">254</span><a name="line.254"></a> -<span class="sourceLineNo">255</span> @Test<a name="line.255"></a> -<span class="sourceLineNo">256</span> public void testMoveTables() throws Exception {<a name="line.256"></a> -<span class="sourceLineNo">257</span> AccessTestAction action = () -> {<a name="line.257"></a> -<span class="sourceLineNo">258</span> rsGroupAdminEndpoint.checkPermission("moveTables");<a name="line.258"></a> -<span class="sourceLineNo">259</span> return null;<a name="line.259"></a> -<span class="sourceLineNo">260</span> };<a name="line.260"></a> -<span class="sourceLineNo">261</span><a name="line.261"></a> -<span class="sourceLineNo">262</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.262"></a> -<span class="sourceLineNo">263</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.263"></a> -<span class="sourceLineNo">264</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.264"></a> -<span class="sourceLineNo">265</span> }<a name="line.265"></a> -<span class="sourceLineNo">266</span><a name="line.266"></a> -<span class="sourceLineNo">267</span> @Test<a name="line.267"></a> -<span class="sourceLineNo">268</span> public void testAddRSGroup() throws Exception {<a name="line.268"></a> -<span class="sourceLineNo">269</span> AccessTestAction action = () -> {<a name="line.269"></a> -<span class="sourceLineNo">270</span> rsGroupAdminEndpoint.checkPermission("addRSGroup");<a name="line.270"></a> -<span class="sourceLineNo">271</span> return null;<a name="line.271"></a> -<span class="sourceLineNo">272</span> };<a name="line.272"></a> -<span class="sourceLineNo">273</span><a name="line.273"></a> -<span class="sourceLineNo">274</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.274"></a> -<span class="sourceLineNo">275</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.275"></a> -<span class="sourceLineNo">276</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.276"></a> +<span class="sourceLineNo">226</span> validateAdminPermissions(action);<a name="line.226"></a> +<span class="sourceLineNo">227</span> }<a name="line.227"></a> +<span class="sourceLineNo">228</span><a name="line.228"></a> +<span class="sourceLineNo">229</span> @Test<a name="line.229"></a> +<span class="sourceLineNo">230</span> public void testGetRSGroupInfoOfTable() throws Exception {<a name="line.230"></a> +<span class="sourceLineNo">231</span> AccessTestAction action = () -> {<a name="line.231"></a> +<span class="sourceLineNo">232</span> rsGroupAdminEndpoint.checkPermission("getRSGroupInfoOfTable");<a name="line.232"></a> +<span class="sourceLineNo">233</span> return null;<a name="line.233"></a> +<span class="sourceLineNo">234</span> };<a name="line.234"></a> +<span class="sourceLineNo">235</span><a name="line.235"></a> +<span class="sourceLineNo">236</span> validateAdminPermissions(action);<a name="line.236"></a> +<span class="sourceLineNo">237</span> }<a name="line.237"></a> +<span class="sourceLineNo">238</span><a name="line.238"></a> +<span class="sourceLineNo">239</span> @Test<a name="line.239"></a> +<span class="sourceLineNo">240</span> public void testMoveServers() throws Exception {<a name="line.240"></a> +<span class="sourceLineNo">241</span> AccessTestAction action = () -> {<a name="line.241"></a> +<span class="sourceLineNo">242</span> rsGroupAdminEndpoint.checkPermission("moveServers");<a name="line.242"></a> +<span class="sourceLineNo">243</span> return null;<a name="line.243"></a> +<span class="sourceLineNo">244</span> };<a name="line.244"></a> +<span class="sourceLineNo">245</span><a name="line.245"></a> +<span class="sourceLineNo">246</span> validateAdminPermissions(action);<a name="line.246"></a> +<span class="sourceLineNo">247</span> }<a name="line.247"></a> +<span class="sourceLineNo">248</span><a name="line.248"></a> +<span class="sourceLineNo">249</span> @Test<a name="line.249"></a> +<span class="sourceLineNo">250</span> public void testMoveTables() throws Exception {<a name="line.250"></a> +<span class="sourceLineNo">251</span> AccessTestAction action = () -> {<a name="line.251"></a> +<span class="sourceLineNo">252</span> rsGroupAdminEndpoint.checkPermission("moveTables");<a name="line.252"></a> +<span class="sourceLineNo">253</span> return null;<a name="line.253"></a> +<span class="sourceLineNo">254</span> };<a name="line.254"></a> +<span class="sourceLineNo">255</span><a name="line.255"></a> +<span class="sourceLineNo">256</span> validateAdminPermissions(action);<a name="line.256"></a> +<span class="sourceLineNo">257</span> }<a name="line.257"></a> +<span class="sourceLineNo">258</span><a name="line.258"></a> +<span class="sourceLineNo">259</span> @Test<a name="line.259"></a> +<span class="sourceLineNo">260</span> public void testAddRSGroup() throws Exception {<a name="line.260"></a> +<span class="sourceLineNo">261</span> AccessTestAction action = () -> {<a name="line.261"></a> +<span class="sourceLineNo">262</span> rsGroupAdminEndpoint.checkPermission("addRSGroup");<a name="line.262"></a> +<span class="sourceLineNo">263</span> return null;<a name="line.263"></a> +<span class="sourceLineNo">264</span> };<a name="line.264"></a> +<span class="sourceLineNo">265</span><a name="line.265"></a> +<span class="sourceLineNo">266</span> validateAdminPermissions(action);<a name="line.266"></a> +<span class="sourceLineNo">267</span> }<a name="line.267"></a> +<span class="sourceLineNo">268</span><a name="line.268"></a> +<span class="sourceLineNo">269</span> @Test<a name="line.269"></a> +<span class="sourceLineNo">270</span> public void testRemoveRSGroup() throws Exception {<a name="line.270"></a> +<span class="sourceLineNo">271</span> AccessTestAction action = () -> {<a name="line.271"></a> +<span class="sourceLineNo">272</span> rsGroupAdminEndpoint.checkPermission("removeRSGroup");<a name="line.272"></a> +<span class="sourceLineNo">273</span> return null;<a name="line.273"></a> +<span class="sourceLineNo">274</span> };<a name="line.274"></a> +<span class="sourceLineNo">275</span><a name="line.275"></a> +<span class="sourceLineNo">276</span> validateAdminPermissions(action);<a name="line.276"></a> <span class="sourceLineNo">277</span> }<a name="line.277"></a> <span class="sourceLineNo">278</span><a name="line.278"></a> <span class="sourceLineNo">279</span> @Test<a name="line.279"></a> -<span class="sourceLineNo">280</span> public void testRemoveRSGroup() throws Exception {<a name="line.280"></a> +<span class="sourceLineNo">280</span> public void testBalanceRSGroup() throws Exception {<a name="line.280"></a> <span class="sourceLineNo">281</span> AccessTestAction action = () -> {<a name="line.281"></a> -<span class="sourceLineNo">282</span> rsGroupAdminEndpoint.checkPermission("removeRSGroup");<a name="line.282"></a> +<span class="sourceLineNo">282</span> rsGroupAdminEndpoint.checkPermission("balanceRSGroup");<a name="line.282"></a> <span class="sourceLineNo">283</span> return null;<a name="line.283"></a> <span class="sourceLineNo">284</span> };<a name="line.284"></a> <span class="sourceLineNo">285</span><a name="line.285"></a> -<span class="sourceLineNo">286</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.286"></a> -<span class="sourceLineNo">287</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.287"></a> -<span class="sourceLineNo">288</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.288"></a> -<span class="sourceLineNo">289</span> }<a name="line.289"></a> -<span class="sourceLineNo">290</span><a name="line.290"></a> -<span class="sourceLineNo">291</span> @Test<a name="line.291"></a> -<span class="sourceLineNo">292</span> public void testBalanceRSGroup() throws Exception {<a name="line.292"></a> -<span class="sourceLineNo">293</span> AccessTestAction action = () -> {<a name="line.293"></a> -<span class="sourceLineNo">294</span> rsGroupAdminEndpoint.checkPermission("balanceRSGroup");<a name="line.294"></a> -<span class="sourceLineNo">295</span> return null;<a name="line.295"></a> -<span class="sourceLineNo">296</span> };<a name="line.296"></a> -<span class="sourceLineNo">297</span><a name="line.297"></a> -<span class="sourceLineNo">298</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.298"></a> -<span class="sourceLineNo">299</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.299"></a> -<span class="sourceLineNo">300</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.300"></a> -<span class="sourceLineNo">301</span> }<a name="line.301"></a> -<span class="sourceLineNo">302</span><a name="line.302"></a> -<span class="sourceLineNo">303</span> @Test<a name="line.303"></a> -<span class="sourceLineNo">304</span> public void testListRSGroup() throws Exception {<a name="line.304"></a> -<span class="sourceLineNo">305</span> AccessTestAction action = () -> {<a name="line.305"></a> -<span class="sourceLineNo">306</span> rsGroupAdminEndpoint.checkPermission("listRSGroup");<a name="line.306"></a> -<span class="sourceLineNo">307</span> return null;<a name="line.307"></a> -<span class="sourceLineNo">308</span> };<a name="line.308"></a> -<span class="sourceLineNo">309</span><a name="line.309"></a> -<span class="sourceLineNo">310</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.310"></a> -<span class="sourceLineNo">311</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.311"></a> -<span class="sourceLineNo">312</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.312"></a> -<span class="sourceLineNo">313</span> }<a name="line.313"></a> -<span class="sourceLineNo">314</span><a name="line.314"></a> -<span class="sourceLineNo">315</span> @Test<a name="line.315"></a> -<span class="sourceLineNo">316</span> public void testGetRSGroupInfoOfServer() throws Exception {<a name="line.316"></a> -<span class="sourceLineNo">317</span> AccessTestAction action = () -> {<a name="line.317"></a> -<span class="sourceLineNo">318</span> rsGroupAdminEndpoint.checkPermission("getRSGroupInfoOfServer");<a name="line.318"></a> -<span class="sourceLineNo">319</span> return null;<a name="line.319"></a> -<span class="sourceLineNo">320</span> };<a name="line.320"></a> -<span class="sourceLineNo">321</span><a name="line.321"></a> -<span class="sourceLineNo">322</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.322"></a> -<span class="sourceLineNo">323</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.323"></a> -<span class="sourceLineNo">324</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.324"></a> -<span class="sourceLineNo">325</span> }<a name="line.325"></a> -<span class="sourceLineNo">326</span><a name="line.326"></a> -<span class="sourceLineNo">327</span> @Test<a name="line.327"></a> -<span class="sourceLineNo">328</span> public void testMoveServersAndTables() throws Exception {<a name="line.328"></a> -<span class="sourceLineNo">329</span> AccessTestAction action = () -> {<a name="line.329"></a> -<span class="sourceLineNo">330</span> rsGroupAdminEndpoint.checkPermission("moveServersAndTables");<a name="line.330"></a> -<span class="sourceLineNo">331</span> return null;<a name="line.331"></a> -<span class="sourceLineNo">332</span> };<a name="line.332"></a> -<span class="sourceLineNo">333</span><a name="line.333"></a> -<span class="sourceLineNo">334</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.334"></a> -<span class="sourceLineNo">335</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.335"></a> -<span class="sourceLineNo">336</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.336"></a> -<span class="sourceLineNo">337</span> }<a name="line.337"></a> -<span class="sourceLineNo">338</span>}<a name="line.338"></a> +<span class="sourceLineNo">286</span> validateAdminPermissions(action);<a name="line.286"></a> +<span class="sourceLineNo">287</span> }<a name="line.287"></a> +<span class="sourceLineNo">288</span><a name="line.288"></a> +<span class="sourceLineNo">289</span> @Test<a name="line.289"></a> +<span class="sourceLineNo">290</span> public void testListRSGroup() throws Exception {<a name="line.290"></a> +<span class="sourceLineNo">291</span> AccessTestAction action = () -> {<a name="line.291"></a> +<span class="sourceLineNo">292</span> rsGroupAdminEndpoint.checkPermission("listRSGroup");<a name="line.292"></a> +<span class="sourceLineNo">293</span> return null;<a name="line.293"></a> +<span class="sourceLineNo">294</span> };<a name="line.294"></a> +<span class="sourceLineNo">295</span><a name="line.295"></a> +<span class="sourceLineNo">296</span> validateAdminPermissions(action);<a name="line.296"></a> +<span class="sourceLineNo">297</span> }<a name="line.297"></a> +<span class="sourceLineNo">298</span><a name="line.298"></a> +<span class="sourceLineNo">299</span> @Test<a name="line.299"></a> +<span class="sourceLineNo">300</span> public void testGetRSGroupInfoOfServer() throws Exception {<a name="line.300"></a> +<span class="sourceLineNo">301</span> AccessTestAction action = () -> {<a name="line.301"></a> +<span class="sourceLineNo">302</span> rsGroupAdminEndpoint.checkPermission("getRSGroupInfoOfServer");<a name="line.302"></a> +<span class="sourceLineNo">303</span> return null;<a name="line.303"></a> +<span class="sourceLineNo">304</span> };<a name="line.304"></a> +<span class="sourceLineNo">305</span><a name="line.305"></a> +<span class="sourceLineNo">306</span> validateAdminPermissions(action);<a name="line.306"></a> +<span class="sourceLineNo">307</span> }<a name="line.307"></a> +<span class="sourceLineNo">308</span><a name="line.308"></a> +<span class="sourceLineNo">309</span> @Test<a name="line.309"></a> +<span class="sourceLineNo">310</span> public void testMoveServersAndTables() throws Exception {<a name="line.310"></a> +<span class="sourceLineNo">311</span> AccessTestAction action = () -> {<a name="line.311"></a> +<span class="sourceLineNo">312</span> rsGroupAdminEndpoint.checkPermission("moveServersAndTables");<a name="line.312"></a> +<span class="sourceLineNo">313</span> return null;<a name="line.313"></a> +<span class="sourceLineNo">314</span> };<a name="line.314"></a> +<span class="sourceLineNo">315</span><a name="line.315"></a> +<span class="sourceLineNo">316</span> validateAdminPermissions(action);<a name="line.316"></a> +<span class="sourceLineNo">317</span> }<a name="line.317"></a> +<span class="sourceLineNo">318</span><a name="line.318"></a> +<span class="sourceLineNo">319</span> @Test<a name="line.319"></a> +<span class="sourceLineNo">320</span> public void testRemoveServers() throws Exception {<a name="line.320"></a> +<span class="sourceLineNo">321</span> AccessTestAction action = () -> {<a name="line.321"></a> +<span class="sourceLineNo">322</span> rsGroupAdminEndpoint.checkPermission("removeServers");<a name="line.322"></a> +<span class="sourceLineNo">323</span> return null;<a name="line.323"></a> +<span class="sourceLineNo">324</span> };<a name="line.324"></a> +<span class="sourceLineNo">325</span><a name="line.325"></a> +<span class="sourceLineNo">326</span> validateAdminPermissions(action);<a name="line.326"></a> +<span class="sourceLineNo">327</span> }<a name="line.327"></a> +<span class="sourceLineNo">328</span><a name="line.328"></a> +<span class="sourceLineNo">329</span> private void validateAdminPermissions(AccessTestAction action) throws Exception {<a name="line.329"></a> +<span class="sourceLineNo">330</span> verifyAllowed(action, SUPERUSER, USER_ADMIN, USER_GROUP_ADMIN);<a name="line.330"></a> +<span class="sourceLineNo">331</span> verifyDenied(action, USER_CREATE, USER_OWNER, USER_RW, USER_RO,<a name="line.331"></a> +<span class="sourceLineNo">332</span> USER_NONE, USER_GROUP_READ, USER_GROUP_WRITE, USER_GROUP_CREATE);<a name="line.332"></a> +<span class="sourceLineNo">333</span> }<a name="line.333"></a> +<span class="sourceLineNo">334</span>}<a name="line.334"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/46d8bc28/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestVersionInfo.html ---------------------------------------------------------------------- diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestVersionInfo.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestVersionInfo.html index 864657f..337c1f1 100644 --- a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestVersionInfo.html +++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestVersionInfo.html @@ -45,9 +45,27 @@ <span class="sourceLineNo">037</span> assertTrue(VersionInfo.compareVersion("1.0.0", "0.98.11") > 0);<a name="line.37"></a> <span class="sourceLineNo">038</span> assertTrue(VersionInfo.compareVersion("0.98.11", "1.0.1") < 0);<a name="line.38"></a> <span class="sourceLineNo">039</span> assertTrue(VersionInfo.compareVersion("2.0.0", "1.4.0") > 0);<a name="line.39"></a> -<span class="sourceLineNo">040</span> assertTrue(VersionInfo.compareVersion("2.0.0", "2.0.0-SNAPSHOT") < 0);<a name="line.40"></a> -<span class="sourceLineNo">041</span> }<a name="line.41"></a> -<span class="sourceLineNo">042</span>}<a name="line.42"></a> +<span class="sourceLineNo">040</span> assertTrue(VersionInfo.compareVersion("2.0.0", "2.0.0-SNAPSHOT") > 0);<a name="line.40"></a> +<span class="sourceLineNo">041</span> assertTrue(VersionInfo.compareVersion("0.94.6.1", "0.96.1.1") < 0);<a name="line.41"></a> +<span class="sourceLineNo">042</span> assertTrue(VersionInfo.compareVersion("0.96.1.1", "0.98.6.1") < 0);<a name="line.42"></a> +<span class="sourceLineNo">043</span> assertTrue(VersionInfo.compareVersion("0.98.6.1", "0.98.10.1") < 0);<a name="line.43"></a> +<span class="sourceLineNo">044</span> assertTrue(VersionInfo.compareVersion("0.98.10.1", "0.98.12.1") < 0);<a name="line.44"></a> +<span class="sourceLineNo">045</span> assertTrue(VersionInfo.compareVersion("0.98.12.1", "0.98.16.1") < 0);<a name="line.45"></a> +<span class="sourceLineNo">046</span> assertTrue(VersionInfo.compareVersion("0.98.16.1", "1.0.1.1") < 0);<a name="line.46"></a> +<span class="sourceLineNo">047</span> assertTrue(VersionInfo.compareVersion("1.0.1.1", "1.1.0.1") < 0);<a name="line.47"></a> +<span class="sourceLineNo">048</span> assertTrue(VersionInfo.compareVersion("2.0..1", "2.0.0") > 0);<a name="line.48"></a> +<span class="sourceLineNo">049</span> assertTrue(VersionInfo.compareVersion("2.0.0", "2.0.0") == 0);<a name="line.49"></a> +<span class="sourceLineNo">050</span> assertTrue(VersionInfo.compareVersion("1.99.14", "2.0.0-alpha-1") < 0);<a name="line.50"></a> +<span class="sourceLineNo">051</span> assertTrue(VersionInfo.compareVersion("2.0.0-alpha-1", "2.0.0-beta-3") < 0);<a name="line.51"></a> +<span class="sourceLineNo">052</span> assertTrue(VersionInfo.compareVersion("2.0.0-beta-3", "2.0.0-SNAPSHOT") < 0);<a name="line.52"></a> +<span class="sourceLineNo">053</span> assertTrue(VersionInfo.compareVersion("2.0.0-SNAPSHOT", "2.0") < 0);<a name="line.53"></a> +<span class="sourceLineNo">054</span> assertTrue(VersionInfo.compareVersion("2.0", "2.0.0.1") < 0);<a name="line.54"></a> +<span class="sourceLineNo">055</span> assertTrue(VersionInfo.compareVersion("2.0.0.1", "2.0.1") < 0);<a name="line.55"></a> +<span class="sourceLineNo">056</span> assertTrue(VersionInfo.compareVersion("3.0.0-alpha-2", "3.0.0-alpha-11") < 0);<a name="line.56"></a> +<span class="sourceLineNo">057</span> assertTrue(VersionInfo.compareVersion("3.0.0-beta-2", "3.0.0-beta-11") < 0);<a name="line.57"></a> +<span class="sourceLineNo">058</span> assertTrue(VersionInfo.compareVersion("2.0.0-foobar", "2.0.0.1") < 0);<a name="line.58"></a> +<span class="sourceLineNo">059</span> }<a name="line.59"></a> +<span class="sourceLineNo">060</span>}<a name="line.60"></a>