input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testMinAndMaxInRange ( ) { parameter . setMinimumValue ( ( - 1 ) , false ) ; parameter . setMaximumValue ( 1 , false ) ; parameter . configure ( org . apache . flink . api . java . utils . ParameterTool . fromArgs ( new java . lang . String [ ] { "--test" , "0" } ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return va...
org . junit . Assert . assertEquals ( new java . lang . Double ( 0 ) , parameter . getValue ( ) )
testDeleteAllFolders ( ) { com . liferay . portal . kernel . model . Group group = com . liferay . portal . kernel . test . util . GroupTestUtil . addGroup ( ) ; com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServic...
org . junit . Assert . assertEquals ( 0 , foldersCount )
testSerialization ( ) { org . jfree . chart . plot . IntervalMarker m1 = new org . jfree . chart . plot . IntervalMarker ( 45.0 , 50.0 ) ; org . jfree . chart . plot . IntervalMarker m2 = ( ( org . jfree . chart . plot . IntervalMarker ) ( org . jfree . chart . TestUtils . serialised ( m1 ) ) ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( m1 , m2 )
testSearchCompartements ( ) { ca . uhn . fhir . jaxrs . server . example . Bundle response = ca . uhn . fhir . jaxrs . server . example . JaxRsPatientProviderDstu3Test . client . search ( ) . forResource ( ca . uhn . fhir . jaxrs . server . example . Patient . class ) . withIdAndCompartment ( "1" , "Condition" ) . retu...
org . junit . Assert . assertTrue ( ( ( response . getEntry ( ) . size ( ) ) > 0 ) )
getValueAsUnsignedByte ( ) { com . cloudhopper . smpp . tlv . Tlv tlv0 = new com . cloudhopper . smpp . tlv . Tlv ( ( ( short ) ( 61441 ) ) , new byte [ ] { ( ( byte ) ( 240 ) ) } ) ; "<AssertPlaceHolder>" ; com . cloudhopper . smpp . tlv . Tlv tlv1 = new com . cloudhopper . smpp . tlv . Tlv ( ( ( short ) ( 2 ) ) , new...
org . junit . Assert . assertEquals ( ( ( short ) ( 240 ) ) , tlv0 . getValueAsUnsignedByte ( ) )
testGetEndpointWithWrongVersion ( ) { java . lang . String stellar = "MAAS_GET_ENDPOINT('dga',<sp>'2.0')" ; java . lang . Object result = run ( stellar , new java . util . HashMap ( ) , org . apache . metron . maas . service . StellarMaaSIntegrationTest . context ) ; "<AssertPlaceHolder>" ; } run ( org . apache . metro...
org . junit . Assert . assertNull ( result )
whenAddUserToStorageThatTheyAdd ( ) { ru . szhernovoy . model . User vasja = new ru . szhernovoy . model . User ( "Vasja" , 25 ) ; ru . szhernovoy . model . User kolja = new ru . szhernovoy . model . User ( "Kolja" , 26 ) ; ru . szhernovoy . control . Validate [ ] valid = new ru . szhernovoy . control . Validate [ 2 ] ...
org . junit . Assert . assertThat ( control , org . hamcrest . core . Is . is ( result ) )
testIsPresentOnNullValue ( ) { "<AssertPlaceHolder>" ; } isPresent ( ) { return new com . annimon . stream . test . hamcrest . OptionalLongMatcher . IsPresentMatcher ( ) ; }
org . junit . Assert . assertThat ( null , com . annimon . stream . test . hamcrest . OptionalLongMatcher . isPresent ( ) )
testApplicationStartup ( ) { System . out . println ( "--><sp>OpenRate<sp>startup" ) ; int expResult = 0 ; java . lang . String [ ] args = new java . lang . String [ 2 ] ; args [ 0 ] = "-p" ; args [ 1 ] = "TestFramework.properties.xml" ; appl = OpenRate . OpenRate . getApplicationInstance ( ) ; int status = appl . crea...
org . junit . Assert . assertEquals ( expResult , status )
iteratorRaisesOnTooSmallRecords ( ) { java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( 1024 ) ; org . apache . kafka . common . record . MemoryRecordsBuilder builder = org . apache . kafka . common . record . MemoryRecords . builder ( buffer , CompressionType . NONE , TimestampType . CREATE_TIME , ...
org . junit . Assert . assertNotNull ( logInputStream . nextBatch ( ) )
testCreateSection ( ) { org . bukkit . configuration . Configuration config = getConfig ( ) ; java . util . Set < java . lang . String > set = new java . util . HashSet < java . lang . String > ( ) ; set . add ( "this" ) ; set . add ( "this.test.sub" ) ; set . add ( "this.test" ) ; set . add ( "this.test.other" ) ; con...
org . junit . Assert . assertEquals ( set , config . getKeys ( true ) )
scaleDown ( ) { prepareSlaveClusterSizeAndServerIds ( org . oscm . app . iaas . VSystemProcessorBeanTest . ONE , org . oscm . app . iaas . VSystemProcessorBeanTest . TWO ) ; org . oscm . app . iaas . data . FlowState newState = vSystemProcessor . scaleDown ( paramHandler , FlowState . VSYSTEM_CREATING , org . oscm . ap...
org . junit . Assert . assertEquals ( FlowState . VSYSTEM_SCALE_DOWN_STOP_SERVER , newState )
testBlob ( ) { java . lang . String clusterName = "testBlob" ; com . orientechnologies . orient . core . sql . executor . OResultSet result = com . orientechnologies . orient . core . sql . executor . OCreateClusterStatementExecutionTest . db . command ( ( "create<sp>blob<sp>cluster<sp>" + clusterName ) ) ; "<AssertPla...
org . junit . Assert . assertTrue ( ( ( com . orientechnologies . orient . core . sql . executor . OCreateClusterStatementExecutionTest . db . getClusterIdByName ( clusterName ) ) > 0 ) )
testfromStringComDddWithLessDigits ( ) { br . com . insula . opes . Telefone telefone = br . com . insula . opes . Telefone . fromString ( "4052-9211" ) ; "<AssertPlaceHolder>" ; } isContemDdd ( ) { if ( numero . matches ( "0[3,8]\\d+" ) ) { return false ; } else { return ( numero . length ( ) ) > 9 ; } }
org . junit . Assert . assertFalse ( telefone . isContemDdd ( ) )
testGetFormattedItem ( ) { org . apache . servicecomb . transport . rest . vertx . accesslog . AccessLogParam < io . vertx . ext . web . RoutingContext > accessLogParam = new org . apache . servicecomb . transport . rest . vertx . accesslog . AccessLogParam ( ) ; io . vertx . ext . web . RoutingContext routingContext =...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( testValue ) )
getByNameReturnsNullWhenDocumentNotLoaded ( ) { when ( this . getByNameQuery . execute ( ) ) . thenReturn ( java . util . Collections . singletonList ( org . phenotips . entities . spi . AbstractPrimaryEntityManagerTest . PERSON_DOCNAME ) ) ; when ( this . dab . getDocument ( org . phenotips . entities . spi . Abstract...
org . junit . Assert . assertNull ( result )
crawlFailsAfterAllRetrials ( ) { com . amihaiemil . charles . WebCrawl mc = org . mockito . Mockito . mock ( com . amihaiemil . charles . WebCrawl . class ) ; org . mockito . Mockito . doThrow ( new java . lang . RuntimeException ( "Fail<sp>all<sp>retrials!" ) ) . when ( mc ) . crawl ( ) ; com . amihaiemil . charles . ...
org . junit . Assert . assertTrue ( ex . getMessage ( ) . equals ( "Fail<sp>all<sp>retrials!" ) )
testRandomVariableGradientBigSum2 ( ) { int numberOfIterations = ( ( int ) ( java . lang . Math . pow ( 10 , 3 ) ) ) ; net . finmath . stochastic . RandomVariable sum = randomVariableFactory . createRandomVariable ( 0.0 ) ; for ( int i = 0 ; i < numberOfIterations ; i ++ ) { sum = sum . add ( randomVariable01 ) ; } jav...
org . junit . Assert . assertTrue ( analyticGradient [ i ] . equals ( aadGradient . get ( keys [ i ] ) ) )
testConvertDataToFileLocationIfEnabled ( ) { gov . hhs . fha . nhinc . admindistribution . AdminDistributionUtils adminUtils = createAdminDistributionUtils ( ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( mockFileUtils ) . isSavePayloadToFileEnabled ( ) ; will ( returnValue ( true ) ) ; oneOf (...
org . junit . Assert . assertEquals ( URI_SAVED_FILE_STRING , contentUri . toString ( ) )
parseFromArray ( ) { long timestamp = java . lang . System . currentTimeMillis ( ) ; long input = 1000 ; long output = 2000 ; long inputRates = 10 ; long outputRates = 20 ; result = new com . ctrip . xpipe . redis . core . proxy . monitor . SessionTrafficResult ( timestamp , input , output , inputRates , outputRates ) ...
org . junit . Assert . assertEquals ( result , other )
testCreateConnectionAndStart ( ) { org . apache . qpid . jms . JmsConnectionFactory factory = new org . apache . qpid . jms . JmsConnectionFactory ( getConnectionURI ( ) ) ; org . apache . qpid . jms . JmsConnection connection = ( ( org . apache . qpid . jms . JmsConnection ) ( factory . createConnection ( ) ) ) ; "<As...
org . junit . Assert . assertNotNull ( connection )
testEquals_differentName ( ) { com . ibm . ws . security . registry . basic . internal . BasicGroup group = new com . ibm . ws . security . registry . basic . internal . BasicGroup ( "group" , new java . util . HashSet < java . lang . String > ( ) ) ; com . ibm . ws . security . registry . basic . internal . BasicGroup...
org . junit . Assert . assertFalse ( group . equals ( groupX ) )
testGetDriver ( ) { java . sql . Driver driver1 = databaseServer . getDriver ( ) ; java . sql . Driver driver2 = databaseServer . getDriver ( ) ; "<AssertPlaceHolder>" ; } getDriver ( ) { return driver ; }
org . junit . Assert . assertSame ( driver1 , driver2 )
testAppModularityMetadataWithDeclaredDependency ( ) { java . lang . String target = "//apps/multidex:modularity-metadata-simple-declared-dep" ; java . nio . file . Path result = workspace . buildAndReturnOutput ( target ) ; java . lang . String expected = workspace . getFileContents ( testdataDir . resolve ( "testAppMo...
org . junit . Assert . assertEquals ( expected , actual )
testBigCacheTimingWithExpiry ( ) { final int _CACHE_SIZE = 1000000 ; org . cache2k . Cache < java . lang . Integer , java . lang . Integer > c = org . cache2k . Cache2kBuilder . of ( Integer . class , Integer . class ) . entryCapacity ( _CACHE_SIZE ) . expireAfterWrite ( 5 , TimeUnit . MINUTES ) . build ( ) ; for ( int...
org . junit . Assert . assertNotNull ( c . toString ( ) )
testBasic ( ) { @ org . apache . hc . core5 . http . protocol . SuppressWarnings ( "deprecation" ) final org . apache . hc . core5 . http . protocol . LookupRegistry < java . lang . Object > matcher = org . apache . hc . core5 . http . protocol . UriPatternType . newMatcher ( UriPatternType . BASIC ) ; "<AssertPlaceHol...
org . junit . Assert . assertTrue ( ( matcher instanceof org . apache . hc . core5 . http . protocol . UriPatternMatcher ) )
shouldNotDoAnythingForNormalEvent ( ) { org . bukkit . event . player . PlayerLoginEvent event = mock ( org . bukkit . event . player . PlayerLoginEvent . class ) ; given ( event . getResult ( ) ) . willReturn ( PlayerLoginEvent . Result . ALLOWED ) ; boolean result = onJoinVerifier . refusePlayerForFullServer ( event ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( false ) )
isOnlyEmojis_for_emojis_returns_true ( ) { java . lang . String str = "" ; boolean isEmoji = com . vdurmont . emoji . EmojiManager . isOnlyEmojis ( str ) ; "<AssertPlaceHolder>" ; } isOnlyEmojis ( java . lang . String ) { return ( string != null ) && ( com . vdurmont . emoji . EmojiParser . removeAllEmojis ( string ) ....
org . junit . Assert . assertTrue ( isEmoji )
testIsAssignable_withMessage ( ) { org . apache . commons . lang3 . Validate . isAssignableFrom ( java . lang . CharSequence . class , java . lang . String . class , "Error" ) ; org . apache . commons . lang3 . Validate . isAssignableFrom ( java . util . AbstractList . class , java . util . ArrayList . class , "Error" ...
org . junit . Assert . assertEquals ( "Error" , e . getMessage ( ) )
testBlockIdGeneration ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( ) ; conf . setInt ( DFSConfigKeys . DFS_REPLICATION_KEY , 1 ) ; org . apache . hadoop . hdfs . MiniDFSCluster cluster = new org . apache . hadoop . hdfs . MiniDFSCluster . Builder ( con...
org . junit . Assert . assertThat ( nextBlockId , org . hamcrest . CoreMatchers . is ( nextBlockExpectedId ) )
testOverload4 ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . Graph . create ( ) ; java . lang . String i = "insert<sp>data<sp>{<sp>" + ( ( "if<sp>(contains(?a,<sp>'kg'),<sp>1000<sp>*<sp>us:value(?a),<sp>us:value(?a))" 5 + "us:t2<sp>us:length<sp>'1000<sp>m'^^us:length<sp>." ) + "if<sp>(contain...
org . junit . Assert . assertEquals ( 5 , map . size ( ) )
testInvalidMatchTypeParameter ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = createBasicParams ( ) ; parameters . put ( "match-type" , "invalid" ) ; org . opennms . netmgt . poller . PollStatus status = monitor . poll ( createMonitor ( ) , parameters ) ; "<AssertPlaceHolder>" ; } i...
org . junit . Assert . assertFalse ( status . isAvailable ( ) )
testOnClose ( ) { final boolean [ ] state = new boolean [ ] { false } ; com . annimon . stream . IntStream stream = com . annimon . stream . IntStream . of ( 0 , 1 , 2 ) . onClose ( new java . lang . Runnable ( ) { @ com . annimon . stream . intstreamtests . Override public void run ( ) { state [ 0 ] = true ; } } ) ; s...
org . junit . Assert . assertTrue ( state [ 0 ] )
testNumberOfAuthors ( ) { java . util . List < org . apache . cxf . jaxrs . ext . search . jpa . Book > books = queryBooks ( "count(authors)=gt=0" ) ; "<AssertPlaceHolder>" ; } size ( ) { return cache . getSize ( ) ; }
org . junit . Assert . assertEquals ( 3 , books . size ( ) )
testDeployment ( ) { try ( grakn . client . GraknClient . Session session = graknClient . session ( "grakn" ) ) { try ( grakn . client . GraknClient . Transaction tx = session . transaction ( ) . write ( ) ) { java . util . List < grakn . core . concept . answer . ConceptMap > result = tx . execute ( graql . lang . Gra...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 0 ) )
filterJars_removeOnlyByArtifactIdTemplate ( ) { org . pentaho . hadoop . shim . HadoopConfigurationLocator locator = new org . pentaho . hadoop . shim . HadoopConfigurationLocator ( ) ; org . apache . commons . vfs2 . FileObject root = org . apache . commons . vfs2 . VFS . getManager ( ) . resolveFile ( org . pentaho ....
org . junit . Assert . assertEquals ( ( ( count ) - 1 ) , list . size ( ) )
testServerScanner ( ) { com . arjuna . ats . internal . jts . recovery . transactions . ExpiredServerScanner scanner = new com . arjuna . ats . internal . jts . recovery . transactions . ExpiredServerScanner ( ) ; "<AssertPlaceHolder>" ; scanner . scan ( ) ; } toBeUsed ( ) { return ( com . arjuna . ats . internal . arj...
org . junit . Assert . assertTrue ( scanner . toBeUsed ( ) )
testFind ( ) { testStream ( "findFirst" , "[101,<sp>100].stream().findFirst().get()" , java . lang . Long . valueOf ( 101 ) ) ; boolean caught = false ; try { org . glassfish . el . test . StreamTest . elp . eval ( "[].stream().findFirst().get()" ) ; } catch ( javax . el . ELException ex ) { caught = true ; } "<AssertP...
org . junit . Assert . assertTrue ( caught )
testAddValueObject ( ) { final org . apache . commons . lang3 . mutable . MutableShort mutNum = new org . apache . commons . lang3 . mutable . MutableShort ( ( ( short ) ( 1 ) ) ) ; mutNum . add ( java . lang . Short . valueOf ( ( ( short ) ( 1 ) ) ) ) ; "<AssertPlaceHolder>" ; } shortValue ( ) { return value ; }
org . junit . Assert . assertEquals ( ( ( short ) ( 2 ) ) , mutNum . shortValue ( ) )
interpretationCodeNullTest ( ) { org . marc . everest . datatypes . generic . SET < org . marc . everest . datatypes . generic . CE < org . marc . everest . rmim . uv . cdar2 . vocabulary . ObservationInterpretation > > interpretationCodes = observationHelper ( org . oscarehr . e2e . model . export . template . ResultC...
org . junit . Assert . assertNull ( interpretationCodes )
testIgnoreMultipleBranches ( ) { nl . topicus . bitbucket . persistence . WebHookConfiguration dummyConfiguration = createDummyConfiguration ( ) ; dummyConfiguration . setBranchesToIgnore ( "feature/.*" ) ; nl . topicus . bitbucket . api . PushEventService pushEventService = new nl . topicus . bitbucket . api . PushEve...
org . junit . Assert . assertThat ( pushEventService . isValidEvent ( dummyEvent , dummyConfiguration ) , org . hamcrest . Matchers . is ( false ) )
mergeTest ( ) { int count = 100 ; long from = 1000 ; long to = 10000 ; int xGroupUnit = 100 ; int yGroupUnit = 100 ; com . navercorp . pinpoint . web . scatter . ScatterData scatterData = new com . navercorp . pinpoint . web . scatter . ScatterData ( from , to , xGroupUnit , yGroupUnit ) ; java . util . List < com . na...
org . junit . Assert . assertEquals ( count , dots . size ( ) )
testListSequentialDatasets ( ) { try { when ( mockFTPClient . login ( "user" , "pssword" ) ) . thenReturn ( true ) ; when ( mockFTPClient . logout ( ) ) . thenReturn ( true ) ; when ( mockFTPClient . isConnected ( ) ) . thenReturn ( false ) ; when ( mockFTPClient . getReplyCode ( ) ) . thenReturn ( 200 ) ; when ( mockF...
org . junit . Assert . assertEquals ( 1 , files . size ( ) )
testIsReentrantReentrant ( ) { final org . osgi . framework . ServiceReference handlerReference = context . mock ( org . osgi . framework . ServiceReference . class , "handlerReference" ) ; context . checking ( new org . jmock . Expectations ( ) { { allowing ( handlerReference ) . getProperty ( EventConstants . EVENT_T...
org . junit . Assert . assertTrue ( holder . isReentrant ( ) )
callback_on_live_connection ( ) { class InitCount_ { public int count = 0 ; } InitCount_ init_count = new InitCount_ ( ) ; jmx_server . start ( ) ; try ( com . groupon . lex . metrics . jmx . JmxClient jmx_client = new com . groupon . lex . metrics . jmx . JmxClient ( jmx_server . url ) ) { jmx_client . getConnection (...
org . junit . Assert . assertEquals ( 1 , init_count . count )
testOptionalWithoutLeft ( ) { java . lang . String query = "SELECT<sp>*\n" + ( ( "WHERE<sp>{\n" + "<sp>OPTIONAL<sp>{<sp><http://example.org/Individual1><sp>rdfs:label<sp>?l<sp>.<sp>}\n" ) + "}" ) ; int count = runQueryAndCount ( query ) ; "<AssertPlaceHolder>" ; } runQueryAndCount ( java . lang . String ) { org . eclip...
org . junit . Assert . assertEquals ( 1 , count )
testNetgroupShell ( ) { org . apache . log4j . Logger . getRootLogger ( ) . setLevel ( org . apache . log4j . Level . DEBUG ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( CommonConfigurationKeys . HADOOP_SECURITY_GROUP_MAPPING , "org.apache.ha...
org . junit . Assert . assertTrue ( ( ( groupList . size ( ) ) > 0 ) )
testDate1 ( ) { long time = java . lang . System . currentTimeMillis ( ) ; java . util . Date convertedDate = _converter . convertType ( ExpandoColumnConstants . DATE , time ) ; "<AssertPlaceHolder>" ; } getTime ( ) { java . util . Calendar calendar = java . util . Calendar . getInstance ( ) ; calendar . set ( Calendar...
org . junit . Assert . assertEquals ( time , convertedDate . getTime ( ) )
testDeserializeProxy ( ) { java . util . List proxy = ( ( java . util . List ) ( java . lang . reflect . Proxy . newProxyInstance ( this . getClass ( ) . getClassLoader ( ) , org . apache . activemq . bugs . AMQ3537Test . TEST_CLASSES , this ) ) ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutp...
org . junit . Assert . assertEquals ( "foo" , deserializedProxy . get ( 0 ) )
testSetCheckable_onVirtual_resolvesItem ( ) { grid = new org . eclipse . nebula . widgets . grid . Grid ( shell , org . eclipse . swt . SWT . VIRTUAL ) ; grid . setItemCount ( 1 ) ; org . eclipse . nebula . widgets . grid . GridItem item = grid . getItem ( 0 ) ; item . setCheckable ( 0 , true ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertTrue ( item . isResolved ( ) )
checkMessageMethod ( ) { java . lang . String str = "test" ; info . smart_tools . smartactors . testing . interfaces . itest_runner . exception . TestExecutionException exception = new info . smart_tools . smartactors . testing . interfaces . itest_runner . exception . TestExecutionException ( str ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( exception . getMessage ( ) , str )
test8 ( ) { nopol_examples . nopol_example_3 . NopolExample ex = new nopol_examples . nopol_example_3 . NopolExample ( ) ; "<AssertPlaceHolder>" ; } isOddNumber ( int ) { int tmp = ( a - 1 ) % 2 ; if ( tmp != 0 ) { return true ; } return false ; }
org . junit . Assert . assertTrue ( ( ! ( ex . isOddNumber ( ( 100 / 2 ) ) ) ) )
testGetTrustBundleById_exceptionInQuery_assertException ( ) { final javax . persistence . EntityManager manager = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( manager ) . createQuery ( ( ( java . lang . String ) ( any ( )...
org . junit . Assert . assertTrue ( exceptionOccured )
testBasicUpdateOfMessage ( ) { myValidatorManager . addRoot ( myShop , new com . rcpcompany . uibindings . validators . ConstraintValidatorAdapter ( ) ) ; myItem . setPrice ( 10.0F ) ; sleep ( ( 2 * ( com . rcpcompany . uibindings . internal . validators . ViewerBindingMessageCollectionTest . VD ) ) ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( 0 , myValidatorManager . getUnboundMessages ( ) . size ( ) )
testWithoutMetronome ( ) { com . hazelcast . simulator . worker . testcontainer . TestContainer_TimeStep_StartNanosTest . StartNanosTest testInstance = new com . hazelcast . simulator . worker . testcontainer . TestContainer_TimeStep_StartNanosTest . StartNanosTest ( ) ; com . hazelcast . simulator . common . TestCase ...
org . junit . Assert . assertEquals ( 10 , startNanosList . size ( ) )
testCreateSslContextJksStoreWithConfiguredContextProtocolOpenSSL ( ) { org . junit . Assume . assumeTrue ( io . netty . handler . ssl . OpenSsl . isAvailable ( ) ) ; org . junit . Assume . assumeTrue ( io . netty . handler . ssl . OpenSsl . supportsKeyManagerFactory ( ) ) ; org . apache . qpid . jms . transports . Tran...
org . junit . Assert . assertNotNull ( context )
testDoDestroy ( ) { control . bind ( session ) ; verify ( canvasHandler ) . addDomainObjectListener ( domainObjectListenerCaptor . capture ( ) ) ; control . doDestroy ( ) ; "<AssertPlaceHolder>" ; final org . kie . workbench . common . stunner . core . client . canvas . listener . CanvasDomainObjectListener domainObjec...
org . junit . Assert . assertNull ( control . getExpressionEditor ( ) )
testInitIncorrectAWSKeys ( ) { java . lang . String region = "us-west-2" ; java . lang . String awsAccessKey = "access-key" ; java . lang . String awsSecretKey = "secret-key" ; com . streamsets . pipeline . api . credential . CredentialStore . Context context = org . mockito . Mockito . mock ( CredentialStore . Context...
org . junit . Assert . assertEquals ( 1 , issues . size ( ) )
test ( ) { int [ ] nums = new int [ ] { 4 , 5 , 6 , 7 , 0 , 1 , 2 } ; int target = 0 ; "<AssertPlaceHolder>" ; } search ( int [ ] , int ) { int lo = 0 ; int hi = ( nums . length ) - 1 ; while ( lo < hi ) { int mid = ( lo + hi ) / 2 ; if ( ( nums [ mid ] ) == target ) { return mid ; } if ( ( nums [ lo ] ) <= ( nums [ mi...
org . junit . Assert . assertThat ( search ( nums , target ) , org . hamcrest . Matchers . is ( 4 ) )
javaHomePropertyWithDefaultValue ( ) { final org . jboss . msc . value . Value < java . lang . String > value = new org . jboss . msc . value . SystemPropertyValue ( "java.home" , new org . jboss . msc . value . ImmediateValue < java . lang . String > ( "default" ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return ( ...
org . junit . Assert . assertSame ( java . lang . System . getProperty ( "java.home" ) , value . getValue ( ) )
basicDbTest ( ) { co . touchlab . squeaky . old . SimpleHelper helper = createHelper ( co . touchlab . squeaky . old . TypesTest . ManyTypes . class ) ; co . touchlab . squeaky . dao . Dao < co . touchlab . squeaky . old . TypesTest . ManyTypes > dao = helper . getDao ( co . touchlab . squeaky . old . TypesTest . ManyT...
org . junit . Assert . assertEquals ( manyTypes , bs . get ( 0 ) )
testInitThrowUnhandledException ( ) { org . camunda . bpm . engine . runtime . ProcessInstance instance = rule . processInstance ( ) ; org . camunda . bpm . engine . task . Task eventSubprocessTask = rule . taskQuery ( ) . taskDefinitionKey ( "eventSubProcessTask" ) . singleResult ( ) ; rule . getRuntimeService ( ) . s...
org . junit . Assert . assertEquals ( "unhandledException" , e . getMessage ( ) )
should_remove_detach_entity ( ) { org . apache . deltaspike . data . test . domain . Simple simple = testData . createSimple ( "testeAttachAndRemove" ) ; repo . detach ( simple ) ; repo . attachAndRemove ( simple ) ; repo . flush ( ) ; org . apache . deltaspike . data . test . domain . Simple lookup = getEntityManager ...
org . junit . Assert . assertNull ( lookup )
testHeapSizeForBlockIndex ( ) { java . lang . Class < org . apache . hadoop . hbase . io . hfile . HFileBlockIndex . BlockIndexReader > cl = org . apache . hadoop . hbase . io . hfile . HFileBlockIndex . BlockIndexReader . class ; long expected = org . apache . hadoop . hbase . util . ClassSize . estimateBase ( cl , fa...
org . junit . Assert . assertEquals ( expected , actual )
serverConfig ( ) { org . jboss . hal . dmr . ResourceAddress input = new org . jboss . hal . dmr . ResourceAddress ( ) . add ( "host" , "*" ) . add ( "server-config" , "server-one" ) ; org . jboss . hal . dmr . ResourceAddress expected = new org . jboss . hal . dmr . ResourceAddress ( ) . add ( "host" , "*" ) . add ( "...
org . junit . Assert . assertEquals ( expected , result )
returnsAnEmptyObjectArrayForZeroArityMethods ( ) { thereAreNoParameters ( ) ; java . lang . Object [ ] params = provider . getParametersFor ( doNothing , errors , null ) ; "<AssertPlaceHolder>" ; } getParametersFor ( br . com . caelum . vraptor . resource . ResourceMethod , java . util . List , java . util . ResourceBu...
org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { } , params )
ReceiverMessageFromLinkSucceeds ( ) { com . microsoft . azure . sdk . iot . deps . transport . amqp . AmqpDeviceOperations amqpDeviceOperation = new com . microsoft . azure . sdk . iot . deps . transport . amqp . AmqpDeviceOperations ( ) ; mockit . Deencapsulation . setField ( amqpDeviceOperation , "receiverLink" , moc...
org . junit . Assert . assertNotNull ( result )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . friendly . url . model . FriendlyURLEntryMapping missingFriendlyURLEntryMapping = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { ...
org . junit . Assert . assertNull ( missingFriendlyURLEntryMapping )
testSizeOfPedigree ( ) { int n = jannovar . pedigree . PedigreeARTest . pedigree . getNumberOfIndividualsInPedigree ( ) ; "<AssertPlaceHolder>" ; } getNumberOfIndividualsInPedigree ( ) { if ( isSingleSample ) return 1 ; else return this . personList . size ( ) ; }
org . junit . Assert . assertEquals ( 6 , n )
testLoadStructureFromURL ( ) { java . lang . String path = new org . biojava . nbio . structure . align . util . UserConfiguration ( ) . getCacheFilePath ( ) ; java . io . File f = new java . io . File ( path , "TEST<sp>DIR" ) ; f . deleteOnExit ( ) ; if ( ! ( f . exists ( ) ) ) { System . out . println ( ( "making<sp>...
org . junit . Assert . assertNotNull ( s )
shouldReturnFalseAndAddErrorForEntityWhenOrderedProductAlreadyExists ( ) { when ( searchCriteriaBuilder . uniqueResult ( ) ) . thenReturn ( delivery ) ; when ( orderedProductDD . getField ( com . qcadoo . mes . deliveries . hooks . PRODUCT ) ) . thenReturn ( productField ) ; boolean result = orderedProductHooks . check...
org . junit . Assert . assertFalse ( result )
testMultipleEntitiesPerIndex ( ) { try ( org . hibernate . Session s = openSession ( ) ) { s . getTransaction ( ) . begin ( ) ; NotPackagedEntity box = new NotPackagedEntity ( ) ; box . title = "This<sp>feels<sp>dirty" ; s . persist ( box ) ; s . getTransaction ( ) . commit ( ) ; } try ( org . hibernate . Session s = o...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
processOptionsNoExpression ( ) { org . apache . hadoop . fs . shell . find . Find find = new org . apache . hadoop . fs . shell . find . Find ( ) ; find . setConf ( org . apache . hadoop . fs . shell . find . TestFind . conf ) ; java . lang . String args = "path" ; java . lang . String expected = "Print(;)" ; find . pr...
org . junit . Assert . assertEquals ( expected , expression . toString ( ) )
testContainsClass ( ) { org . apache . commons . math4 . util . NumberTransformer expected = new org . apache . commons . math4 . util . DefaultTransformer ( ) ; org . apache . commons . math4 . util . TransformerMap map = new org . apache . commons . math4 . util . TransformerMap ( ) ; map . putTransformer ( org . apa...
org . junit . Assert . assertTrue ( map . containsClass ( org . apache . commons . math4 . util . TransformerMapTest . class ) )
testGetAdvancesPosition ( ) { assert ( buffer . position ( ) ) < ( buffer . limit ( ) ) ; int oldPos = buffer . position ( ) ; buffer . get ( ) ; "<AssertPlaceHolder>" ; } position ( ) { return position ; }
org . junit . Assert . assertEquals ( buffer . position ( ) , ( oldPos + 1 ) )
testExonOverlapStartDuplicatedOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59004875\t.\tN\t<CNV>\t.\t.\tSVTYPE=CNV;END=59005052" ) ; final java . lang . String expected = "1\t59004875\t.\tN\t<CNV>\t.\t.\tEND=59005052;" + ( "SVANN=copy_number_change&structural_variant&cod...
org . junit . Assert . assertEquals ( expected , actual )
filterAttributesToGetReturnsItemWhenAttributesToGetIsNull ( ) { java . util . Map < java . lang . String , com . amazonaws . services . dynamodbv2 . model . AttributeValue > result = isolationHandler . filterAttributesToGet ( com . amazonaws . services . dynamodbv2 . transactions . ReadUncommittedIsolationHandlerImplUn...
org . junit . Assert . assertEquals ( com . amazonaws . services . dynamodbv2 . transactions . ReadUncommittedIsolationHandlerImplUnitTest . UNLOCKED_ITEM , result )
testSerialization ( ) { org . jfree . chart . renderer . category . MinMaxCategoryRenderer r1 = new org . jfree . chart . renderer . category . MinMaxCategoryRenderer ( ) ; org . jfree . chart . renderer . category . MinMaxCategoryRenderer r2 = ( ( org . jfree . chart . renderer . category . MinMaxCategoryRenderer ) ( ...
org . junit . Assert . assertEquals ( r1 , r2 )
testFullSubjectRateShouldBeDefined ( ) { org . drugis . addis . entities . RateMeasurement base = new org . drugis . addis . entities . BasicRateMeasurement ( 50 , 100 ) ; org . drugis . addis . entities . RateMeasurement subj = new org . drugis . addis . entities . BasicRateMeasurement ( 100 , 100 ) ; org . drugis . a...
org . junit . Assert . assertTrue ( or . isDefined ( ) )
theMostRecentPrevails ( ) { turin . context . ContextTest . MyContext ctx = new turin . context . ContextTest . MyContext ( ) ; ctx . enterContext ( "a" ) ; ctx . enterContext ( "b" ) ; ctx . enterContext ( "c" ) ; "<AssertPlaceHolder>" ; } get ( ) { java . util . Stack < V > ctx = values . get ( ) ; if ( ctx . isEmpty...
org . junit . Assert . assertEquals ( java . util . Optional . of ( "c" ) , ctx . get ( ) )
testSetAttached_Set_To_False ( ) { mmarquee . automation . controls . AutomationApplication app = new mmarquee . automation . controls . AutomationApplication ( new mmarquee . automation . controls . ElementBuilder ( element ) . handle ( handle ) . attached ( false ) . automation ( instance ) ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertFalse ( app . getIsAttached ( ) )
shouldPongServerPingFrameWithPayload ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . kaazing . gateway . transport . test . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with (...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
testFileFormatV2postFLUME1432 ( ) { org . apache . flume . channel . file . TestUtils . TestUtils . copyDecompressed ( "2686" 0 , new java . io . File ( checkpointDir , "2686" 1 ) ) ; for ( int i = 0 ; i < ( dataDirs . length ) ; i ++ ) { int fileIndex = i + 1 ; org . apache . flume . channel . file . TestUtils . TestU...
org . junit . Assert . assertTrue ( channel . isOpen ( ) )
testParseNegativeAll ( ) { java . lang . String source = ( ( ( "{-1" + ( getDecimalCharacter ( ) ) ) + "2323;<sp>-1" ) + ( getDecimalCharacter ( ) ) ) + "4343}" ; org . apache . commons . math3 . geometry . euclidean . twod . Vector2D expected = new org . apache . commons . math3 . geometry . euclidean . twod . Vector2...
org . junit . Assert . assertEquals ( expected , actual )
testNodebellyMessageDetailsDeserializationTest ( ) { com . streamreduce . core . model . messages . details . SobaMessageDetails details = new com . streamreduce . core . model . messages . details . nodebelly . NodebellyMessageDetails . Builder ( ) . structure ( new java . util . HashMap < java . lang . String , java ...
org . junit . Assert . assertEquals ( expected , actual )
passesStaticFieldToSuperClassConstructor ( ) { org . teavm . vm . VMTest . SubClass obj = new org . teavm . vm . VMTest . SubClass ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertNotNull ( obj . getValue ( ) )
searchTest4 ( ) { java . lang . String input = "b" ; org . json . JSONArray resultsArray = new org . json . JSONArray ( ) ; org . json . JSONObject expectedResult = new org . json . JSONObject ( ) ; expectedResult . put ( "matched" , resultsArray ) ; java . lang . String searchResult = this . mocker . getComponentUnder...
org . junit . Assert . assertEquals ( expectedResult . toString ( ) , searchResult )
testMoveConcurrentWithGetChildrenRefs ( ) { org . junit . Assume . assumeTrue ( "VCS<sp>read-committed<sp>semantics<sp>cannot<sp>enforce<sp>this" , isDBS ( ) ) ; prepareDocsForMoveConcurrentWithGetChildren ( ) ; java . util . List < org . nuxeo . ecm . core . api . DocumentRef > children = session . getChildrenRefs ( n...
org . junit . Assert . assertEquals ( 0 , children . size ( ) )
should_get_empty_map_for_properties ( ) { java . util . Map < java . lang . String , java . lang . String > properties = plugin . getPropertiesWithDefaultValue ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return false ; }
org . junit . Assert . assertTrue ( properties . isEmpty ( ) )
inspectImageNoImageLinkTest ( ) { final java . lang . Object [ ] errors = new java . lang . Object [ ] { null } ; com . vmware . admiral . closures . services . closure . Closure closure = new com . vmware . admiral . closures . services . closure . Closure ( ) ; dockerDriver . inspectImage ( "test_image" , null , ( er...
org . junit . Assert . assertNotNull ( errors [ 0 ] )
testRightLongInteger ( ) { long expected = 5 ; long actual = cFunction . right ( 10L , 1 ) ; "<AssertPlaceHolder>" ; } right ( java . lang . Integer , java . lang . Long ) { return l1 > > l2 ; }
org . junit . Assert . assertEquals ( expected , actual )
whenADateFallsOnAWorkingDayItShouldBeAdjustedToSameDay ( ) { org . joda . time . DateTime firstOfNextMonth = new org . joda . time . DateTime ( ) . plusMonths ( 1 ) . withDayOfMonth ( 1 ) . toDateMidnight ( ) . toDateTime ( ) ; org . joda . time . DateTime firstTuesdayOfNextMonth = firstOfNextMonth . withDayOfWeek ( or...
org . junit . Assert . assertThat ( adjustedDate , org . hamcrest . CoreMatchers . is ( firstTuesdayOfNextMonth ) )
testCompareToWithSuperiorMinorVersion ( ) { org . tibennetwork . iarcade . mame . MameVersion version1 = new org . tibennetwork . iarcade . mame . MameVersion ( "0.78" ) ; org . tibennetwork . iarcade . mame . MameVersion version2 = new org . tibennetwork . iarcade . mame . MameVersion ( "0.149" ) ; "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( ( ( version1 . compareTo ( version2 ) ) < 0 ) )
testSelectSubtractBaseTable ( ) { org . verdictdb . core . sqlobject . BaseTable base = new org . verdictdb . core . sqlobject . BaseTable ( "myschema" , "mytable" , "t" ) ; java . util . List < org . verdictdb . core . sqlobject . UnnamedColumn > operands = java . util . Arrays . < org . verdictdb . core . sqlobject ....
org . junit . Assert . assertEquals ( expected , actual )
testSerialization ( ) { org . jfree . chart . renderer . xy . XYBlockRenderer r1 = new org . jfree . chart . renderer . xy . XYBlockRenderer ( ) ; org . jfree . chart . renderer . xy . XYBlockRenderer r2 = ( ( org . jfree . chart . renderer . xy . XYBlockRenderer ) ( org . jfree . chart . TestUtilities . serialised ( r...
org . junit . Assert . assertEquals ( r1 , r2 )
testMapToPair ( ) { org . nd4j . linalg . function . Map < java . lang . String , java . lang . String > map = new org . nd4j . linalg . function . HashMap ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { map . put ( java . lang . String . valueOf ( i ) , java . lang . String . valueOf ( i ) ) ; } org . nd4j . linalg . functio...
org . junit . Assert . assertEquals ( map . size ( ) , pairs . size ( ) )
testNullServerVariables ( ) { com . ibm . ws . microprofile . openapi . impl . validation . ServerVariablesValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . ServerVariablesValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = n...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
testValidConfiguration ( ) { java . lang . String conf = "<configuration>\n" + ( ( ( ( "<property>\n" + "<name>foo</name>\n" ) + "<value>bar</value>\n" ) + "</property>\n" ) + "</configuration>" ) ; java . io . ByteArrayInputStream bais = new java . io . ByteArrayInputStream ( conf . getBytes ( ) ) ; java . util . List...
org . junit . Assert . assertTrue ( errors . isEmpty ( ) )
isNullOrEmptyInputNull_called_with_null ( ) { java . lang . String value = null ; java . lang . Boolean expResult = true ; java . lang . Boolean result = com . microsoft . azure . sdk . iot . provisioning . service . Tools . isNullOrEmpty ( value ) ; "<AssertPlaceHolder>" ; } isNullOrEmpty ( java . lang . String ) { ja...
org . junit . Assert . assertEquals ( expResult , result )
testFutureEntryDate ( ) { java . util . Map < java . lang . String , java . util . List < java . lang . String > > lineages = com . google . common . collect . ImmutableMap . of ( "school1" , java . util . Arrays . asList ( "school1" ) , "school2" , java . util . Arrays . asList ( "school2" , "Proudhon" , "Kropotkin" )...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )