input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
isFile_valid ( ) { "<AssertPlaceHolder>" ; } isFile ( java . net . URL ) { return org . arakhne . afc . inputoutput . filefilter . D3DSFileFilter . is3DSFile ( url ) ; }
org . junit . Assert . assertTrue ( isFile ( this . resource ) )
test ( ) { System . out . println ( "---------Erstelle<sp>Job" ) ; org . kapott . hbci . GV . HBCIJob job = handler . newJob ( "value" 8 ) ; org . kapott . hbci . structures . Konto acc = new org . kapott . hbci . structures . Konto ( ) ; acc . blz = params . getProperty ( "value" 4 ) ; acc . number = params . getPrope...
org . junit . Assert . assertEquals ( "---------Erstelle<sp>Job" 1 , true , res . isOK ( ) )
testFactory ( ) { net . jhorstmann . i18n . LocaleProvider provider = net . jhorstmann . i18n . LocaleProviderFactory . newInstance ( ) . newLocaleProvider ( ) ; "<AssertPlaceHolder>" ; } newLocaleProvider ( ) { return net . jhorstmann . i18n . jsf . FacesLocaleProviderFactory . PROVIDER ; }
org . junit . Assert . assertNotNull ( provider )
testEncodedProto ( ) { org . apache . beam . runners . core . construction . SdkComponents components = org . apache . beam . runners . core . construction . SdkComponents . create ( ) ; components . registerEnvironment ( org . apache . beam . runners . core . construction . Environments . createDockerEnvironment ( "ja...
org . junit . Assert . assertThat ( deserializedView , org . hamcrest . Matchers . equalTo ( createViewTransform . getView ( ) ) )
shouldExpandCapacityOfUInt32 ( ) { net . schmizz . sshj . common . Buffer . PlainBuffer buf = new net . schmizz . sshj . common . Buffer . PlainBuffer ( ) ; for ( int i = 0 ; i < ( ( Buffer . DEFAULT_SIZE ) + 1 ) ; i += 4 ) { buf . putUInt32 ( 1L ) ; } "<AssertPlaceHolder>" ; } putUInt32 ( long ) { ensureCapacity ( 4 )...
org . junit . Assert . assertEquals ( ( ( Buffer . DEFAULT_SIZE ) * 2 ) , buf . data . length )
testHtml ( ) { org . apache . poi . hssf . usermodel . HSSFWorkbook workbook ; try { workbook = org . apache . poi . hssf . converter . ExcelToHtmlUtils . loadXls ( child ) ; } catch ( java . lang . Exception exc ) { return ; } org . apache . poi . hssf . converter . ExcelToHtmlConverter excelToHtmlConverter = new org ...
org . junit . Assert . assertNotNull ( stringWriter . toString ( ) )
testLoadingExample ( ) { final org . kie . dmn . api . marshalling . DMNMarshaller DMNMarshaller = org . kie . dmn . backend . marshalling . v1x . DMNMarshallerFactory . newDefaultMarshaller ( ) ; final java . io . InputStream is = this . getClass ( ) . getResourceAsStream ( "/src/test/resources/ch11example.xml" ) ; fi...
org . junit . Assert . assertNotNull ( root )
testZonderKind ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > berichtEntiteiten = brby0178 . voerRegelUit ( bouwHuidigeSituatie ( false , false ) , null , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) )
createWithNoItemsShouldFail ( ) { java . util . List < net . magja . model . order . OrderFormItem > items = new java . util . ArrayList < net . magja . model . order . OrderFormItem > ( ) ; net . magja . model . order . OrderForm orderForm = new net . magja . model . order . OrderForm ( 3L , "IDR" , items ) ; java . l...
org . junit . Assert . assertNull ( order )
testEndingParentSpanBeforeChildSpanParentEnabled ( ) { com . yammer . telemetry . tracing . Span parent = new com . yammer . telemetry . tracing . EnabledSpan ( java . math . BigInteger . ONE , java . math . BigInteger . ZERO , com . google . common . base . Optional . < java . math . BigInteger > absent ( ) , "parent"...
org . junit . Assert . assertTrue ( context . captureSpans ( ) . isEmpty ( ) )
testGetTable ( ) { java . lang . String schema = "testSchema" ; java . lang . String table = "testTable" ; java . sql . ResultSet rs = mock ( java . sql . ResultSet . class ) ; when ( dbmd . getTables ( null , schema , table , null ) ) . thenReturn ( rs ) ; java . sql . ResultSet result = jdbcMetadata . getTable ( dbmd...
org . junit . Assert . assertEquals ( rs , result )
multi_threaded_class_generation ( ) { final bsh . This callable = createCallable ( ) ; final java . util . concurrent . atomic . AtomicInteger counter = new java . util . concurrent . atomic . AtomicInteger ( ) ; final java . lang . Runnable runnable = new java . lang . Runnable ( ) { public void run ( ) { try { final ...
org . junit . Assert . assertEquals ( i , o )
getAuthorizedNamespacesWhenNoApplicationUserInContextReturnEmpty ( ) { org . springframework . security . core . context . SecurityContextHolder . getContext ( ) . setAuthentication ( new org . springframework . security . authentication . TestingAuthenticationToken ( new org . finra . herd . model . dto . SecurityUser...
org . junit . Assert . assertEquals ( 0 , authorizedNamespaces . size ( ) )
content ( ) { "<AssertPlaceHolder>" ; } content ( ) { org . junit . Assert . assertThat ( new org . jboss . aerogear . io . netty . handler . codec . sockjs . protocol . OpenFrame ( ) . content ( ) . toString ( CharsetUtil . UTF_8 ) , org . hamcrest . CoreMatchers . equalTo ( "o" ) ) ; }
org . junit . Assert . assertThat ( new org . jboss . aerogear . io . netty . handler . codec . sockjs . protocol . OpenFrame ( ) . content ( ) . toString ( CharsetUtil . UTF_8 ) , org . hamcrest . CoreMatchers . equalTo ( "o" ) )
testStirctWatchWithoutQuotes ( ) { java . lang . String str = ( ( ( ( ( ( ( "package<sp>com.sample;\n" + "import<sp>" ) + ( org . drools . compiler . integrationtests . StrictAnnotationTest . MyClass . class . getCanonicalName ( ) ) ) + ";\n" ) + "rule<sp>R1<sp>when\n" ) + "<sp>@Watch(<sp>!value<sp>)<sp>$m<sp>:<sp>MyCl...
org . junit . Assert . assertEquals ( 1 , results . getMessages ( ) . size ( ) )
test2ModesInLexer ( ) { org . antlr . v4 . tool . LexerGrammar lg = new org . antlr . v4 . tool . LexerGrammar ( ( "rule<sp>0:3<sp>1\n" 1 + ( ( ( ( "A<sp>:<sp>\'a\'\n<sp>;\n" + "mode<sp>M;\n" ) + "rule<sp>0:3<sp>1\n" 3 ) + "mode<sp>M2;\n" ) + "6:RULE_STOP<sp>1\n" 0 ) ) ) ; java . lang . String expecting = "rule<sp>0:3<...
org . junit . Assert . assertEquals ( expecting , result )
shouldResolveSecurityPolicy2 ( ) { io . gravitee . gateway . api . Request request = mock ( io . gravitee . gateway . api . Request . class ) ; io . gravitee . gateway . security . core . AuthenticationHandler securityProvider1 = mock ( io . gravitee . gateway . security . core . AuthenticationHandler . class ) ; when ...
org . junit . Assert . assertEquals ( securityProvider2 , securityProvider )
testEncodedPartition ( ) { com . linkedin . camus . etl . kafka . common . EtlKey testEtlKey = new com . linkedin . camus . etl . kafka . common . EtlKey ( ) ; testEtlKey . setTime ( 1400549463000L ) ; org . apache . hadoop . conf . Configuration testConfiguration = new org . apache . hadoop . conf . Configuration ( ) ...
org . junit . Assert . assertTrue ( actualResult . equals ( expectedResult ) )
testIsNotBlankWhenNameIsNotBlank ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = makeDataType ( "uuid" , "tCity" ) ; "<AssertPlaceHolder>" ; } isBlank ( org . kie . workbench . common . dmn . client . editors . types . common . DataType ) { return isEmpty ( dat...
org . junit . Assert . assertFalse ( validator . isBlank ( dataType ) )
testGetSearchIndexes ( ) { org . finra . herd . model . api . xml . SearchIndexKeys searchIndexKeys = new org . finra . herd . model . api . xml . SearchIndexKeys ( java . util . Arrays . asList ( new org . finra . herd . model . api . xml . SearchIndexKey ( SEARCH_INDEX_NAME ) , new org . finra . herd . model . api . ...
org . junit . Assert . assertEquals ( searchIndexKeys , response )
createFileFunctionScriptLoader ( ) { com . airhacks . enhydrator . transform . FunctionScriptLoader actual = com . airhacks . enhydrator . transform . FunctionScriptLoader . create ( "/config" , null ) ; "<AssertPlaceHolder>" ; } create ( java . lang . String , java . util . Map ) { java . util . Objects . requireNonNu...
org . junit . Assert . assertTrue ( ( actual instanceof com . airhacks . enhydrator . transform . FileFunctionScriptLoader ) )
testAddPointsToArray ( ) { for ( final com . eatthepath . jvptree . VPTreeNode < java . lang . Number , java . lang . Integer > testNode : this . createTestNodes ( com . eatthepath . jvptree . VPTreeNodeTest . TEST_NODE_SIZE ) ) { final java . lang . Integer [ ] array = new java . lang . Integer [ com . eatthepath . jv...
org . junit . Assert . assertFalse ( testNode . retainAll ( java . util . Arrays . asList ( array ) ) )
testNegatives ( ) { final byte [ ] data = new byte [ ] { - 7 , - 8 , - 9 , - 1 , - 2 , - 3 , - 7 , - 9 , - 8 , - 1 , - 3 , - 2 , - 8 , - 7 , - 9 , - 2 , - 1 , - 3 , - 8 , - 9 , - 7 , - 2 , - 3 , - 1 , - 9 , - 7 , - 8 , - 3 , - 1 , - 2 , - 9 , - 8 , - 7 , - 3 , - 2 , - 1 } ; final net . imglib2 . img . Img < net . imgli...
org . junit . Assert . assertEquals ( cout . next ( ) . get ( ) , expected [ i ] )
shouldDisposeTheDialogWhenTheUserClicksOffTheViewer ( ) { org . eclipse . swt . widgets . Listener [ ] listeners = dialog . getListeners ( org . infinitest . eclipse . resolution . Deactivate ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1 , listeners . length )
testSameType ( ) { com . orientechnologies . orient . core . metadata . schema . ArrayList < java . lang . Object > aList = new com . orientechnologies . orient . core . metadata . schema . ArrayList < java . lang . Object > ( ) ; aList . add ( 1 ) ; aList . add ( "2" ) ; java . lang . Object result = com . orientechno...
org . junit . Assert . assertEquals ( result , aList )
testIsFieldBindingValidWhenNotBindable ( ) { doReturn ( false ) . when ( plugin ) . isBindable ( ) ; "<AssertPlaceHolder>" ; } isFieldBindingValid ( ) { if ( ! ( isBindable ( ) ) ) { return true ; } final java . lang . String binding = getBinding ( ) ; if ( ( binding == null ) || ( binding . isEmpty ( ) ) ) { return tr...
org . junit . Assert . assertTrue ( plugin . isFieldBindingValid ( ) )
testUpdateSwitchRegion ( ) { org . openkilda . wfm . topology . floodlightrouter . service . FloodlightTracker floodlightTracker = new org . openkilda . wfm . topology . floodlightrouter . service . FloodlightTracker ( floodlights , org . openkilda . wfm . topology . floodlightrouter . service . FloodlightTrackerTest ....
org . junit . Assert . assertTrue ( floodlightTracker . switchRegionMap . containsKey ( org . openkilda . wfm . topology . floodlightrouter . service . FloodlightTrackerTest . SWITCH_ID_ONE ) )
testFractionObject ( ) { java . lang . String s = "123/246" ; java . math . BigDecimal bd = valueConverter . toValue ( s , null ) ; java . math . BigDecimal expected = new java . math . BigDecimal ( "0.5" ) ; "<AssertPlaceHolder>" ; } toValue ( java . lang . String , org . eclipse . xtext . nodemodel . INode ) { return...
org . junit . Assert . assertEquals ( expected , bd )
testBoolean ( ) { java . lang . Object executeScript = io . webfolder . ui4j . test . JavaScriptEngineTest . page . executeScript ( "1<sp>===<sp>1" ) ; "<AssertPlaceHolder>" ; } executeScript ( java . lang . String ) { java . lang . Object result = engine . executeScript ( script ) ; return result ; }
org . junit . Assert . assertEquals ( io . webfolder . ui4j . test . Boolean . class , executeScript . getClass ( ) )
fetchStopsAfterFirstReturnedFalse ( ) { org . easymock . EasyMock . expect ( downloader . fetch ( fakeEventBus , fakeUri , fakePath ) ) . andReturn ( false ) . once ( ) ; org . easymock . EasyMock . replay ( downloader ) ; "<AssertPlaceHolder>" ; } from ( com . facebook . buck . file . downloader . Downloader , int ) {...
org . junit . Assert . assertFalse ( com . facebook . buck . file . downloader . impl . RetryingDownloader . from ( downloader , 3 ) . fetch ( fakeEventBus , fakeUri , fakePath ) )
isBundle_emptyManifest ( ) { aQute . bnd . osgi . Jar jar = mock ( aQute . bnd . osgi . Jar . class , Mockito . RETURNS_DEEP_STUBS ) ; when ( jar . getManifest ( ) . getMainAttributes ( ) ) . thenReturn ( null ) ; boolean isBundle = utils . isBundle ( jar ) ; "<AssertPlaceHolder>" ; } isBundle ( java . io . File ) { aQ...
org . junit . Assert . assertFalse ( isBundle )
testFileWithNullElements ( ) { java . io . File tempDir = getBuidDirectory ( ) ; java . io . File result = org . mule . runtime . core . internal . util . FilenameUtils . fileWithPathComponents ( new java . lang . String [ ] { tempDir . getAbsolutePath ( ) , "tmp" , null , "bar" } ) ; java . lang . String resultNormali...
org . junit . Assert . assertEquals ( excpected , resultNormalized )
itShouldFailAtBeingAndQuery ( ) { session . begin ( ) ; session . save ( session . newElement ( "Some" ) ) ; try ( com . orientechnologies . orient . core . sql . executor . OResultSet resultSet = session . query ( "select<sp>from<sp>Some" ) ) { "<AssertPlaceHolder>" ; } waitAndClean ( ) ; session . activateOnCurrentTh...
org . junit . Assert . assertEquals ( 1 , resultSet . stream ( ) . count ( ) )
updateFailure ( ) { try { userService . updateWithFail ( ) ; } catch ( java . lang . Exception e ) { System . out . println ( "rollback" ) ; } com . rhwayfun . springboot . mybatis . shardingjdbc . entity . UserEntity one = userMapper . getOne ( userService . getUserId ( ) ) ; "<AssertPlaceHolder>" ; } getUserId ( ) { ...
org . junit . Assert . assertTrue ( ( one == null ) )
testGetParametersWithDefaultEntityAndDisabledSecurity ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . mark . scale . exchange . MarkScaleExchange entity = new org . lnu . is . domain . mark . scale . exchange . MarkScaleExchange ( ) ; java . util . Map < java . lang . String , java . lang . Object > expe...
org . junit . Assert . assertEquals ( expected , actual )
testSingletonDotUnstagedIteration ( ) { org . apache . taverna . scufl2 . api . iterationstrategy . DotProduct dp = getDot ( 0 , 0 ) ; org . apache . taverna . scufl2 . validation . structural . StructuralValidator sv = new org . apache . taverna . scufl2 . validation . structural . StructuralValidator ( ) ; java . uti...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , sv . getIterationDepth ( dp , tempDepths ) )
testGetChildComments ( ) { java . util . List < com . liferay . portal . kernel . comment . Comment > childComments = _commentManager . getChildComments ( _parentCommentId , WorkflowConstants . STATUS_APPROVED , QueryUtil . ALL_POS , QueryUtil . ALL_POS ) ; "<AssertPlaceHolder>" ; } toString ( ) { com . liferay . petra...
org . junit . Assert . assertEquals ( childComments . toString ( ) , 3 , childComments . size ( ) )
testStdOutOutputArgumentsLong ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--action" , "json" , "--stdout" } ; org . wikidata . wdtk . client . ClientConfiguration config = new org . wikidata . wdtk . client . ClientConfiguration ( args ) ; "<AssertPlaceHolder>" ; } isQuiet ( ) { return this . ...
org . junit . Assert . assertTrue ( config . isQuiet ( ) )
testLang315 ( ) { final org . apache . commons . lang3 . time . StopWatch watch = new org . apache . commons . lang3 . time . StopWatch ( ) ; watch . start ( ) ; try { java . lang . Thread . sleep ( 200 ) ; } catch ( final java . lang . InterruptedException ex ) { } watch . suspend ( ) ; final long suspendTime = watch ...
org . junit . Assert . assertTrue ( ( suspendTime == totalTime ) )
entryShouldBeNull ( ) { com . android . volley . Cache . Entry entry = discCache . get ( null ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return new com . navercorp . volleyextensions . volleyer . GetBuilder ( requestQueue , configuration , url ) ; }
org . junit . Assert . assertNull ( entry )
testGetLoggerString ( ) { "<AssertPlaceHolder>" ; } getLogger ( java . lang . Class ) { return com . j256 . ormlite . logger . LoggerFactory . getLogger ( clazz . getName ( ) ) ; }
org . junit . Assert . assertNotNull ( com . j256 . ormlite . logger . LoggerFactory . getLogger ( getClass ( ) . getName ( ) ) )
testConcurrencyWillFail ( ) { final java . text . SimpleDateFormat format = new java . text . SimpleDateFormat ( "yyyy-MM-dd<sp>HH:mm:ss" ) ; final java . util . Random random = new java . util . Random ( ) ; java . lang . Thread [ ] threads = new java . lang . Thread [ 16 ] ; final long [ ] iter = new long [ 16 ] ; fi...
org . junit . Assert . assertFalse ( passed [ 0 ] , ( ( passed [ 0 ] ) == null ) )
testGetCompanyOwnerByCompanyId ( ) { com . onboard . domain . model . User ret = roleServiceImpl . getCompanyOwnerByCompanyId ( company . getId ( ) ) ; verify ( companyService ) . getById ( org . mockito . Mockito . eq ( company . getId ( ) ) ) ; verify ( userService ) . getById ( org . mockito . Mockito . eq ( company...
org . junit . Assert . assertEquals ( ret , user )
shouldHandleOperationChain ( ) { final uk . gov . gchq . gaffer . store . operation . OperationChainValidator opChainValidator = mock ( uk . gov . gchq . gaffer . store . operation . OperationChainValidator . class ) ; final java . util . List < uk . gov . gchq . gaffer . store . optimiser . OperationChainOptimiser > o...
org . junit . Assert . assertSame ( expectedResult , result )
collectByteParallel ( ) { org . eclipse . collections . api . list . primitive . ByteList expected = org . eclipse . collections . impl . collector . Collectors2AdditionalTest . LARGE_INTERVAL . collectByte ( ( each ) -> ( ( byte ) ( each % Byte . MAX_VALUE ) ) , ByteLists . mutable . empty ( ) ) ; org . eclipse . coll...
org . junit . Assert . assertEquals ( expected , actual )
test ( ) { jp . co . future . uroborosql . parameter . mapper . BigIntegerParameterMapper mapper = new jp . co . future . uroborosql . parameter . mapper . BigIntegerParameterMapper ( ) ; "<AssertPlaceHolder>" ; } toJdbc ( java . lang . String , java . sql . Connection , jp . co . future . uroborosql . parameter . mapp...
org . junit . Assert . assertThat ( mapper . toJdbc ( java . math . BigInteger . valueOf ( 1 ) , null , null ) , org . hamcrest . CoreMatchers . is ( java . math . BigDecimal . valueOf ( 1 ) ) )
testOpen ( ) { java . io . File file = new java . io . File ( filePath ) ; if ( ! ( file . exists ( ) ) ) { org . esa . snap . engine_utilities . util . TestUtils . skipTest ( this , ( ( filePath ) + "<sp>not<sp>found" ) ) ; return ; } org . esa . snap . core . datamodel . Product product = reader . readProductNodes ( ...
org . junit . Assert . assertNotNull ( product )
_01_TestGetClientId ( ) { com . exacttarget . fuelsdk . ETConfigurationTest . clientId = com . exacttarget . fuelsdk . ETConfigurationTest . configuration . get ( "clientId" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { java . net . HttpURLConnection connection = null ; try { com . exacttarget . fuelsdk ...
org . junit . Assert . assertNotNull ( com . exacttarget . fuelsdk . ETConfigurationTest . clientId )
testAutoMapOfNumberToInteger ( ) { "<AssertPlaceHolder>" ; } autoMap ( java . sql . ResultSet , java . lang . Class ) { try { if ( cls . isInterface ( ) ) { return com . github . davidmoten . rx . jdbc . Util . autoMapInterface ( rs , cls ) ; } else { int n = rs . getMetaData ( ) . getColumnCount ( ) ; for ( java . lan...
org . junit . Assert . assertEquals ( 1 , com . github . davidmoten . rx . jdbc . Util . autoMap ( 1L , com . github . davidmoten . rx . jdbc . Integer . class ) )
write_null_absent ( ) { com . asakusafw . runtime . io . json . value . IntOptionPropertyAdapter adapter = builder . withNullStyle ( NullStyle . ABSENT ) . build ( ) ; com . asakusafw . runtime . io . json . value . MockValue writer = new com . asakusafw . runtime . io . json . value . MockValue ( "ABSENT" ) ; adapter ...
org . junit . Assert . assertThat ( writer . get ( ) , is ( "ABSENT" ) )
domSourceToNode ( ) { org . w3c . dom . Document d = org . xmlunit . util . ConvertTest . animalDocument ( ) ; org . xmlunit . util . ConvertTest . convertToNodeAndAssert ( new javax . xml . transform . dom . DOMSource ( d ) ) ; "<AssertPlaceHolder>" ; } toNode ( javax . xml . transform . Source ) { org . w3c . dom . N...
org . junit . Assert . assertSame ( d , org . xmlunit . util . Convert . toNode ( new javax . xml . transform . dom . DOMSource ( d ) ) )
testDefineCommand ( ) { try { com . gabstudios . cmdline . CmdLine . defineCommand ( "file,<sp>!fileName,<sp>?fileName,<sp>:file\\d.txt,<sp>#Load<sp>files<sp>into<sp>the<sp>system" ) ; org . junit . Assert . fail ( ) ; } catch ( com . gabstudios . cmdline . DuplicateException e ) { "<AssertPlaceHolder>" ; } } defineCom...
org . junit . Assert . assertTrue ( true )
availableAlgorithmsContainsCurrentAlgorithmTest ( ) { org . eclipse . reddeer . eclipse . equinox . security . ui . storage . StoragePreferencePage storagePage = new org . eclipse . reddeer . eclipse . equinox . security . ui . storage . StoragePreferencePage ( workbenchPreferenceDialog ) ; workbenchPreferenceDialog . ...
org . junit . Assert . assertTrue ( availableAlgorithms . contains ( storagePage . getEncryptionAlgorithm ( ) ) )
test_getBounds ( ) { org . eclipse . gef . geometry . planar . CurvedPolygon curvedPolygon = new org . eclipse . gef . geometry . planar . CurvedPolygon ( new org . eclipse . gef . geometry . planar . Line ( 100 , 100 , 200 , 100 ) , new org . eclipse . gef . geometry . planar . Line ( 200 , 100 , 200 , 200 ) , new org...
org . junit . Assert . assertEquals ( expectation , reality )
testSet_bit0 ( ) { classUnderTest . set ( 0 , 0 ) ; "<AssertPlaceHolder>" ; } getSquareOccupied ( ) { return bitBoard ; }
org . junit . Assert . assertTrue ( ( ( classUnderTest . getSquareOccupied ( ) ) == 1L ) )
testWasShowWhenItShouldBe ( ) { com . gemserk . animation4j . gdx . Animation animation = new com . gemserk . animation4j . gdx . Animation ( new com . badlogic . gdx . graphics . g2d . Sprite [ ] { } , new com . gemserk . animation4j . FrameAnimationImpl ( true , 50.0F , 25.0F , 30.0F ) ) ; com . gemserk . animation4j...
org . junit . Assert . assertTrue ( animationMonitor . isTriggered ( ) )
canInitCauseWithInstanceCreatedWithString ( ) { org . junit . AssumptionViolatedException e = new org . junit . AssumptionViolatedException ( "invalid<sp>number" ) ; java . lang . Throwable cause = new java . lang . RuntimeException ( "cause" ) ; e . initCause ( cause ) ; "<AssertPlaceHolder>" ; } getCause ( ) { return...
org . junit . Assert . assertThat ( e . getCause ( ) , org . hamcrest . CoreMatchers . is ( cause ) )
brokenSchemaException1 ( ) { org . ebayopensource . turmeric . tools . codegen . exception . BrokenSchemaException brokenSchemaEx = new org . ebayopensource . turmeric . tools . codegen . exception . BrokenSchemaException ( "Schema<sp>is<sp>not<sp>valid" ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return ( ( ( ( ( (...
org . junit . Assert . assertTrue ( ( ( brokenSchemaEx . getMessage ( ) ) != null ) )
testGetColumnsBeforeNext ( ) { try ( java . sql . ResultSet resultSet = getResultSet ( ) ) { for ( int i = 1 ; i <= ( resultSet . getMetaData ( ) . getColumnCount ( ) ) ; i ++ ) { "<AssertPlaceHolder>" ; } } } getColumn ( java . sql . ResultSet , int , boolean ) { try { switch ( index ) { case 1 : resultSet . getBoolea...
org . junit . Assert . assertTrue ( getColumn ( resultSet , i , true ) )
testFormatListWithWhereWithNull ( ) { java . lang . String sql = java . lang . String . format ( "select<sp>%s(b,<sp>\',\')<sp>as<sp>a,<sp>b<sp>from<sp>cp.\"json/nested.json\"<sp>where<sp>b<sp>is<sp>null" , FormatList . NAME ) ; com . dremio . dac . model . job . JobDataFragment result = runQuery ( sql ) ; java . util ...
org . junit . Assert . assertEquals ( 0 , actual . size ( ) )
testGetMimeTypeXml ( ) { java . lang . String mimeType ; when ( mimeTypeMapper . guessMimeType ( any ( java . io . InputStream . class ) , eq ( "xml" ) ) ) . thenReturn ( "text/xml" ) ; mimeType = ftplet . getMimeType ( "xml" , new org . codice . ddf . platform . util . TemporaryFileBackedOutputStream ( ) ) ; "<AssertP...
org . junit . Assert . assertEquals ( "text/xml" , mimeType )
testParseResponse ( ) { System . out . println ( "OrcIDStrategyUnitTest.parseResponse_EuropePMC" ) ; java . util . List < cz . metacentrum . perun . cabinet . model . Publication > publications = europePMCStrategy . parseResponse ( cz . metacentrum . perun . cabinet . strategy . impl . EuropePMCStrategyUnitTest . Europ...
org . junit . Assert . assertTrue ( ( ( publications . size ( ) ) == 3 ) )
getStartCellReference ( ) { org . apache . poi . xssf . usermodel . XSSFWorkbook wb = org . apache . poi . xssf . XSSFTestDataSamples . openSampleWorkbook ( "StructuredReferences.xlsx" ) ; org . apache . poi . xssf . usermodel . XSSFTable table = wb . getTable ( "\\_Prime.1" ) ; "<AssertPlaceHolder>" ; wb . close ( ) ;...
org . junit . Assert . assertEquals ( new org . apache . poi . ss . util . CellReference ( "A1" ) , table . getStartCellReference ( ) )
shouldSelectAuthorsUsingMapperClass ( ) { org . apache . ibatis . session . SqlSession session = org . apache . ibatis . session . SqlSessionTest . sqlMapper . openSession ( ) ; try { org . apache . ibatis . domain . blog . mappers . AuthorMapper mapper = session . getMapper ( org . apache . ibatis . domain . blog . ma...
org . junit . Assert . assertEquals ( 2 , authors . size ( ) )
testAtomicNumber ( ) { org . openscience . cdk . interfaces . IAtom atom = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; org . openscience . cdk . interfaces . IAtomContainer container = mock ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; org . openscience . cdk . hash . AtomEncod...
org . junit . Assert . assertThat ( encoder . encode ( atom , container ) , org . hamcrest . CoreMatchers . is ( 6 ) )
testSaveEditorCallback ( ) { final java . util . Set < java . lang . String > selectedRoles = new java . util . HashSet < java . lang . String > ( ) ; selectedRoles . add ( "roleE1" ) ; when ( rolesExplorer . getSelectedEntities ( ) ) . thenReturn ( selectedRoles ) ; tested . saveEditorCallback . execute ( ) ; "<Assert...
org . junit . Assert . assertTrue ( ( ( tested . entities . size ( ) ) == 1 ) )
should_map_Short_to_Short ( ) { com . github . erchu . beancp . commons . NumberConvertersTest . Source sourceInstance = new com . github . erchu . beancp . commons . NumberConvertersTest . Source ( ) ; sourceInstance . setShortWrapperValue ( ( ( short ) ( 8 ) ) ) ; com . github . erchu . beancp . Mapper mapper = new c...
org . junit . Assert . assertEquals ( ( ( short ) ( 8 ) ) , ( ( short ) ( result . getShortWrapperValue ( ) ) ) )
shouldMutateATwoVariableSolutionReturnTheSameSolutionIfNoBitsAreMutated ( ) { @ org . uma . jmetal . operator . impl . mutation . SuppressWarnings ( "unchecked" ) org . uma . jmetal . util . pseudorandom . RandomGenerator < java . lang . Double > randomGenerator = mock ( org . uma . jmetal . util . pseudorandom . Rando...
org . junit . Assert . assertEquals ( oldSolution , solution )
testSystemEnv ( ) { java . lang . Object save = org . aeonbits . owner . util . UtilTest . setSystem ( new org . aeonbits . owner . util . SystemProviderForTest ( new java . util . Properties ( ) { { setProperty ( "user.home" , "/home/foobar" ) ; } } , new java . util . HashMap < java . lang . String , java . lang . St...
org . junit . Assert . assertEquals ( envHome , conf . envHome ( ) )
testSetEvictionPolicy ( ) { org . apache . geode . cache . server . ClientSubscriptionConfig mockConfig = mock ( org . apache . geode . cache . server . ClientSubscriptionConfig . class , "testSetEvictionPolicy.ClientSubscriptionConfig" ) ; org . apache . geode . cache . server . ClientSubscriptionConfig returnedConfig...
org . junit . Assert . assertSame ( mockConfig , returnedConfig )
count ( ) { com . zlzkj . core . sql . SQLBuilder adminSB = com . zlzkj . core . sql . SQLBuilder . getSQLBuilder ( com . zlzkj . app . model . Admin . class ) ; java . lang . String sql = adminSB . fields ( "count(*)" ) . selectSql ( ) ; int count = sqlRunner . count ( sql ) ; logger . info ( ( "@count<sp>>>>><sp>coun...
org . junit . Assert . assertTrue ( ( count > 0 ) )
getIssueTrackerTasksByProjectId ( ) { issueTrackerService = new at . ac . tuwien . ifs . tita . issuetracker . issue . service . IssueTrackerService ( defaultLogin ) ; at . ac . tuwien . ifs . tita . issuetracker . interfaces . IProjectTrackable project = issueTrackerService . getIssueTrackerDao ( ) . findProject ( pro...
org . junit . Assert . assertNotNull ( issueTrackerService . getIssueTrackerTasksByProjectId ( project . getId ( ) ) )
testPath ( ) { org . apache . dubbo . config . ServiceConfig < org . apache . dubbo . config . spring . api . DemoService > service = new org . apache . dubbo . config . ServiceConfig < org . apache . dubbo . config . spring . api . DemoService > ( ) ; service . setPath ( "a/b$c" ) ; try { service . setPath ( "a?b" ) ;...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( "" ) )
testGetFocusItem_Initial ( ) { "<AssertPlaceHolder>" ; } getFocusItem ( ) { checkWidget ( ) ; return focusItem ; }
org . junit . Assert . assertNull ( grid . getFocusItem ( ) )
testCreateJobInstance ( ) { er . quartzscheduler . foundation . ERQSJobDescription4Test jd = initialize ( ) ; er . quartzscheduler . foundation . ERQSJob4Test aJob = ( ( er . quartzscheduler . foundation . ERQSJob4Test ) ( er . quartzscheduler . util . ERQSUtilities . createJobInstance ( jd ) ) ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertNotNull ( aJob )
testSerialization ( ) { com . orsoncharts . axis . NumberTickSelector s1 = new com . orsoncharts . axis . NumberTickSelector ( ) ; com . orsoncharts . axis . NumberTickSelector s2 = ( ( com . orsoncharts . axis . NumberTickSelector ) ( com . orsoncharts . TestUtils . serialized ( s1 ) ) ) ; "<AssertPlaceHolder>" ; } eq...
org . junit . Assert . assertTrue ( s1 . equals ( s2 ) )
testConcatByteArraysByteArrays_AllElemtentsAreNull ( ) { byte [ ] array1 = null ; byte [ ] array2 = null ; byte [ ] array3 = null ; byte [ ] expected = new byte [ ] { } ; byte [ ] result = de . persosim . simulator . utils . Utils . concatByteArrays ( array1 , array2 , array3 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertArrayEquals ( expected , result )
testUnmarshallingSuccessResponseToJson ( ) { java . io . InputStream input = getClass ( ) . getResourceAsStream ( "/unit/test-response-success.json" ) ; java . lang . String expectedJson = org . apache . commons . io . IOUtils . toString ( input ) ; org . vertx . java . http . eventbusbridge . model . EventBusBridgeRes...
org . junit . Assert . assertEquals ( expectedJson , actualJson )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_SUNLDAPTest . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . secu...
org . junit . Assert . assertEquals ( "SUNLDAPRealm" , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_SUNLDAPTest . servlet . getRealm ( ) )
getLong ( ) { final java . lang . Long value = 32L ; final io . trane . ndbc . value . LongValue wrapper = new io . trane . ndbc . value . LongValue ( value ) ; "<AssertPlaceHolder>" ; } getLong ( ) { return new java . lang . Long ( get ( ) ) ; }
org . junit . Assert . assertEquals ( value , wrapper . getLong ( ) )
testSyncReceiveWithExpirationChecks ( ) { org . apache . activemq . ActiveMQConnectionFactory factory = new org . apache . activemq . ActiveMQConnectionFactory ( brokerURI ) ; javax . jms . Connection connection = factory . createConnection ( ) ; javax . jms . Session session = connection . createSession ( false , Sess...
org . junit . Assert . assertNull ( consumer . receive ( 1000 ) )
testFind_Nested ( ) { classMappings . add ( com . github . dozermapper . core . classmap . ClassMappingsTest . NestedClass . class , java . lang . String . class , mock ( com . github . dozermapper . core . classmap . ClassMap . class ) ) ; com . github . dozermapper . core . classmap . ClassMap result = classMappings ...
org . junit . Assert . assertNotNull ( result )
testDetailedUsage ( ) { java . lang . String specialItem = "a<sp>particular<sp>java<sp>packagename." 1 ; if ( ! ( isQuolifiedVersion ( ) ) ) { specialItem = "-p<sp><[wsdl<sp>namespace<sp>=]Package<sp>Name>*" ; } java . lang . String [ ] expected = new java . lang . String [ ] { "[<sp>-n<sp><C++<sp>Namespace><sp>]" , "a...
org . junit . Assert . assertEquals ( ( "a<sp>particular<sp>java<sp>packagename." 3 + index ) , expected [ ( index ++ ) ] , st1 . nextToken ( ) . toString ( ) . trim ( ) )
testNederlandseNationaliteitBronKoninklijkBesluitPartnerschapTeKort ( ) { final nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumEvtDeelsOnbekendAttribuut datumEvtDeelsOnbekendAttribuut = new nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumEvtDeelsOnbekendAttribuut ( nl . bzk . brp . mode...
org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) )
testDenseRankWithoutPartitionOrderby ( ) { java . lang . String sqlText = java . lang . String . format ( ( "<sp>44<sp>|<sp>2<sp>|<sp>52000<sp>|<sp>8<sp>|\n" 4 + "FROM<sp>%s<sp>--SPLICE-PROPERTIES<sp>useSpark<sp>=<sp>%s<sp>\n<sp>order<sp>by<sp>empnum" ) , this . getTableReference ( com . splicemachine . derby . impl . ...
org . junit . Assert . assertEquals ( ( ( "<sp>44<sp>|<sp>2<sp>|<sp>52000<sp>|<sp>8<sp>|\n" 9 + sqlText ) + "<sp>44<sp>|<sp>2<sp>|<sp>52000<sp>|<sp>8<sp>|\n" 9 ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testValidYang10BitsWithUnknownStatements ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaContext schemaContext = org . opendaylight . yangtools . yang . stmt . StmtTestUtils . parseYangSource ( "/rfc7950/bug6887/bar10-valid.yang" ) ; "<AssertPlaceHolder>" ; } parseYangSource ( java . lang . Stri...
org . junit . Assert . assertNotNull ( schemaContext )
testGetElementsByEntityIdWithViewRestrictedByGroup ( ) { final uk . gov . gchq . gaffer . graph . Graph graph = uk . gov . gchq . gaffer . mapstore . impl . GetAllElementsHandlerTest . getGraph ( ) ; final uk . gov . gchq . gaffer . operation . impl . add . AddElements addElements = new uk . gov . gchq . gaffer . opera...
org . junit . Assert . assertEquals ( expectedResults , resultsSet )
testResolveTemplatesEmptyMap ( ) { javax . ws . rs . client . WebTarget base = org . jboss . resteasy . test . client . WebTargetTest . client . target ( ( ( generateURL ( "/" ) ) + "users/{username}" ) ) ; javax . ws . rs . client . WebTarget created = base . path ( "{id}/{question}/{question}" ) ; java . util . Map <...
org . junit . Assert . assertEquals ( result , created )
extraPropertyIsNotVisibleToParent ( ) { org . gradle . internal . extensibility . ExtensibleDynamicObjectTest . Bean parent = new org . gradle . internal . extensibility . ExtensibleDynamicObjectTest . Bean ( ) ; org . gradle . internal . extensibility . ExtensibleDynamicObjectTest . Bean bean = new org . gradle . inte...
org . junit . Assert . assertFalse ( parent . hasProperty ( "parentProperty" ) )
testGetAdditionsWhenNoRepositoriesExist ( ) { final org . springframework . roo . classpath . layers . MemberTypeAdditions additions = layerProvider . getMemberTypeAdditions ( org . springframework . roo . addon . layers . repository . mongo . RepositoryMongoLayerProviderTest . CALLER_MID , org . springframework . roo ...
org . junit . Assert . assertNull ( additions )
initNetworkWithContainerPrefix ( ) { java . lang . String initResult = _manager . initNetwork ( null , "containerPrefix" ) ; "<AssertPlaceHolder>" ; } initNetwork ( java . lang . String , java . lang . String ) { try { javax . ws . rs . client . WebTarget webTarget = getTarget ( CoordConsts . SVC_RSC_INIT_NETWORK ) ; o...
org . junit . Assert . assertThat ( initResult , org . hamcrest . Matchers . startsWith ( "containerPrefix" ) )
given_OTF_without_a_OS2WindowsMetricsTable_strictValidatorFails ( ) { org . mabb . fontverter . FVFont font = org . mabb . fontverter . FontVerter . readFont ( ( ( org . mabb . fontverter . TestUtils . TEST_PATH ) + "Missing-OS2WinTable.otf" ) ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return ( getValidationErrors ( )...
org . junit . Assert . assertFalse ( font . isValid ( ) )
isNotEmpty ( ) { mandatorySubject . setValue ( SpdConstants . NotificationRequest . NON_RECEIPT ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return elementen . isEmpty ( ) ; }
org . junit . Assert . assertEquals ( false , mandatorySubject . isEmpty ( ) )
createLayoutTemplate ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . layouttpl . tests . LAYOUT_TEMPLATE ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningProjectBuildingJobs ( ) ; viewAction . project . openUpd...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) )
example07 ( ) { "<AssertPlaceHolder>" ; } example07 ( ) { org . junit . Assert . assertEquals ( 0.6902F , org . simmetrics . example . StringMetricBuilderExample . example07 ( ) , org . simmetrics . example . StringMetricBuilderExampleTest . DELTA ) ; }
org . junit . Assert . assertEquals ( 0.6902F , org . simmetrics . example . StringMetricBuilderExample . example07 ( ) , org . simmetrics . example . StringMetricBuilderExampleTest . DELTA )
testRemoveLabelType ( ) { org . libreplan . business . labels . entities . LabelType labelType = org . libreplan . business . labels . entities . LabelType . create ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; labelTypeDAO . save ( labelType ) ; labelTypeDAO . remove ( labelType . getId ( ) ) ; "<AssertPlac...
org . junit . Assert . assertFalse ( labelTypeDAO . exists ( labelType . getId ( ) ) )
testTimeout ( ) { final rx . Observable < java . lang . Boolean > observable = getObservableAsync ( ) . timeout ( ) ; "<AssertPlaceHolder>" ; org . junit . Assert . fail ( java . lang . String . valueOf ( observable . toBlocking ( ) . first ( ) ) ) ; } timeout ( ) { java . lang . Thread . sleep ( 1000 ) ; return com . ...
org . junit . Assert . assertNotNull ( observable )
testInset ( ) { org . apache . ibatis . session . SqlSession tdhsSession = getTDHSSession ( ) ; for ( com . taobao . tdhs . jdbc . test . mybatis . vo . TestVO testVO : com . taobao . tdhs . jdbc . test . mybatis . CRUDMyBatisTest . DATA ) { int insert = tdhsSession . getMapper ( com . taobao . tdhs . jdbc . test . myb...
org . junit . Assert . assertEquals ( 1 , insert )
loadReturnsNullWhenPatientDoesNotHaveVariantClass ( ) { doReturn ( null ) . when ( this . doc ) . getXObjects ( any ( org . xwiki . model . reference . EntityReference . class ) ) ; org . phenotips . data . PatientData < java . util . Map < java . lang . String , java . lang . String > > result = this . mocker . getCom...
org . junit . Assert . assertNull ( result )
domEvent_nestedEventClass ( ) { java . lang . reflect . Constructor < com . vaadin . flow . component . ComponentEventBusUtilTest . NestedClass > ctor = com . vaadin . flow . component . ComponentEventBusUtil . getEventConstructor ( com . vaadin . flow . component . ComponentEventBusUtilTest . NestedClass . class ) ; "...
org . junit . Assert . assertNotNull ( ctor )