List of usage examples for org.objectweb.asm Opcodes V14
int V14
To view the source code for org.objectweb.asm Opcodes V14.
Click Source Link
From source file:org.jacoco.core.analysis.AnalyzerTest.java
License:Open Source License
/** * @see #analyzeAll_should_throw_exception_for_unsupported_class_file_version() *///ww w. j av a2s. c om @Test public void analyzeClass_should_throw_exception_for_unsupported_class_file_version() { final byte[] bytes = createClass(Opcodes.V14 + 1); try { analyzer.analyzeClass(bytes, "UnsupportedVersion"); fail("exception expected"); } catch (IOException e) { assertEquals("Error while analyzing UnsupportedVersion.", e.getMessage()); assertEquals("Unsupported class file major version 59", e.getCause().getMessage()); } }
From source file:org.jacoco.core.analysis.AnalyzerTest.java
License:Open Source License
/** * @see #analyzeClass_should_throw_exception_for_unsupported_class_file_version() *//*ww w . j a v a 2s . c o m*/ @Test public void analyzeAll_should_throw_exception_for_unsupported_class_file_version() { final byte[] bytes = createClass(Opcodes.V14 + 1); try { analyzer.analyzeAll(new ByteArrayInputStream(bytes), "UnsupportedVersion"); fail("exception expected"); } catch (IOException e) { assertEquals("Error while analyzing UnsupportedVersion.", e.getMessage()); assertEquals("Unsupported class file major version 59", e.getCause().getMessage()); } }
From source file:org.jacoco.core.instr.InstrumenterTest.java
License:Open Source License
/** * @see #instrumentAll_should_throw_exception_for_unsupported_class_file_version() *//*from ww w. jav a 2 s . c om*/ @Test public void instrument_should_throw_exception_for_unsupported_class_file_version() { final byte[] bytes = createClass(Opcodes.V14 + 1); try { instrumenter.instrument(bytes, "UnsupportedVersion"); fail("exception expected"); } catch (final IOException e) { assertEquals("Error while instrumenting UnsupportedVersion.", e.getMessage()); assertEquals("Unsupported class file major version 59", e.getCause().getMessage()); } }
From source file:org.jacoco.core.instr.InstrumenterTest.java
License:Open Source License
/** * @see #instrument_should_throw_exception_for_unsupported_class_file_version() */// w w w .ja v a 2s . c o m @Test public void instrumentAll_should_throw_exception_for_unsupported_class_file_version() { final byte[] bytes = createClass(Opcodes.V14 + 1); try { instrumenter.instrumentAll(new ByteArrayInputStream(bytes), new ByteArrayOutputStream(), "UnsupportedVersion"); fail("exception expected"); } catch (final IOException e) { assertEquals("Error while instrumenting UnsupportedVersion.", e.getMessage()); assertEquals("Unsupported class file major version 59", e.getCause().getMessage()); } }