input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testInnerProduct ( ) { mikera . matrixx . Matrix m = mikera . matrixx . Matrixx . createYAxisRotationMatrix ( 2.0 ) . toMatrix ( ) ; mikera . arrayz . NDArray a = mikera . arrayz . NDArray . wrap ( m ) ; "<AssertPlaceHolder>" ; } innerProduct ( mikera . matrixx . AMatrix ) { if ( ( a . rowCount ( ) ) != ( rows ) ) thro... | org . junit . Assert . assertEquals ( a . innerProduct ( a ) , m . innerProduct ( m ) ) |
failedJobPartitionRequestTest ( ) { final org . apache . hyracks . control . nc . NodeControllerService nc1 = org . apache . asterix . runtime . PartitionManagerTest . integrationUtil . ncs [ 0 ] ; final org . apache . hyracks . control . nc . NodeControllerService nc2 = org . apache . asterix . runtime . PartitionMana... | org . junit . Assert . assertTrue ( failed . get ( ) ) |
testACLPublic ( ) { org . geowebcache . s3 . S3BlobStoreInfo config = new org . geowebcache . s3 . S3BlobStoreInfo ( ) ; config . setAccess ( Access . PUBLIC ) ; "<AssertPlaceHolder>" ; } getAccessControlList ( ) { com . amazonaws . services . s3 . model . CannedAccessControlList accessControlList ; if ( ( access ) == ... | org . junit . Assert . assertEquals ( CannedAccessControlList . PublicRead , config . getAccessControlList ( ) ) |
testAddSpecificQuery ( ) { java . lang . String query = "select<sp>count(data_id)<sp>from<sp>r_data_main" ; java . lang . String alias = "get_dataobject_ids" ; org . irods . jargon . core . pub . domain . SpecificQueryDefinition specificQuery = new org . irods . jargon . core . pub . domain . SpecificQueryDefinition ( ... | org . junit . Assert . assertNotNull ( pi ) |
testEmptyContainer ( ) { org . openscience . cdk . interfaces . IAtomContainer emptyContainer = super . builder . newInstance ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; org . openscience . cdk . renderer . elements . IRenderingElement root = generator . generate ( emptyContainer , model ) ; jav... | org . junit . Assert . assertEquals ( 0 , elements . size ( ) ) |
testGetProducts ( ) { com . welflex . order . dto . ProductListDto products = com . welflex . order . IntegrationTest . PRODUCT_CLIENT . getProducts ( ) ; "<AssertPlaceHolder>" ; products = com . welflex . order . IntegrationTest . PRODUCT_CLIENT . getProducts ( ) ; System . out . println ( "Sleeping<sp>for<sp>5<sp>sec... | org . junit . Assert . assertFalse ( ( ( products . getProducts ( ) . size ( ) ) == 0 ) ) |
testOperator_lessEqualsThanNullNull ( ) { java . lang . Number x = null ; java . lang . Number y = null ; boolean resutl = org . eclipse . smarthome . model . script . lib . NumberExtensions . operator_lessEqualsThan ( x , y ) ; "<AssertPlaceHolder>" ; } operator_lessEqualsThan ( java . lang . Number , java . lang . Nu... | org . junit . Assert . assertTrue ( resutl ) |
testMergeDefaultLocale ( ) { this . previousDocument . setDefaultLocale ( Locale . ENGLISH ) ; this . nextDocument . setDefaultLocale ( Locale . FRENCH ) ; this . currentDocument . setDefaultLocale ( Locale . ENGLISH ) ; merge ( ) ; "<AssertPlaceHolder>" ; } getDefaultLocale ( ) { return ( this . defaultLocale ) != nul... | org . junit . Assert . assertEquals ( Locale . FRENCH , this . currentDocument . getDefaultLocale ( ) ) |
test_parse_simple_empty_array ( ) { java . lang . Object [ ] objs = org . nutz . json . Json . fromJson ( java . lang . Object [ ] . class , "[]" ) ; "<AssertPlaceHolder>" ; } fromJson ( java . lang . Class , java . io . Reader ) { return ( ( T ) ( org . nutz . json . Json . parse ( type , reader ) ) ) ; } | org . junit . Assert . assertEquals ( 0 , objs . length ) |
getInsertableColumnsInsertableFalseWithId ( ) { @ com . zaxxer . sansorm . internal . Table ( name = "Test_Class" ) class TestClass { @ com . zaxxer . sansorm . internal . Id @ com . zaxxer . sansorm . internal . Column ( insertable = false ) java . lang . String id ; @ com . zaxxer . sansorm . internal . Column ( name... | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { } , cols ) |
testDeleteMessageCollection ( ) { sut . deleteMessageCollection ( testId , org . eurekastreams . server . service . opensocial . spi . MessageServiceTest . TEST_MESSAGE_COLL_ID , org . eurekastreams . server . service . opensocial . spi . MessageServiceTest . FAKETOKEN ) ; "<AssertPlaceHolder>" ; } deleteMessageCollect... | org . junit . Assert . assertTrue ( true ) |
testProcessor ( ) { com . manning . sbia . ch14 . domain . Product p1 = new com . manning . sbia . ch14 . domain . Product ( ) ; p1 . setPrice ( new java . math . BigDecimal ( "100.0" ) ) ; com . manning . sbia . ch14 . domain . Product p2 = processor . process ( p1 ) ; "<AssertPlaceHolder>" ; } process ( com . manning... | org . junit . Assert . assertNotNull ( p2 ) |
testRegionOpenProcedureIsNotHandledByDispatcher ( ) { org . apache . hadoop . hbase . TableName tableName = org . apache . hadoop . hbase . TableName . valueOf ( "testRegionOpenProcedureIsNotHandledByDisPatcher" ) ; org . apache . hadoop . hbase . client . RegionInfo hri = org . apache . hadoop . hbase . client . Regio... | org . junit . Assert . assertFalse ( openRegionProcedure . isFinished ( ) ) |
deleteNonExistentSubEquipment ( ) { cern . c2mon . shared . client . configuration . api . equipment . SubEquipment subEquipment = buildDeleteSubEquipment ( 10L ) ; java . util . List < cern . c2mon . shared . client . configuration . api . equipment . SubEquipment > equipmentRemoveList = java . util . Arrays . asList ... | org . junit . Assert . assertEquals ( 0 , parser . parse ( config ) . size ( ) ) |
expectedOutputShouldBeUsed ( ) { org . mule . runtime . core . api . event . CoreEvent jsonMessage = eventBuilder ( muleContext ) . message ( org . mule . runtime . api . message . Message . builder ( ) . value ( "{\"student\":<sp>false}" ) . mediaType ( org . mule . runtime . core . internal . el . dataweave . APPLICA... | org . junit . Assert . assertThat ( result . getValue ( ) , org . hamcrest . Matchers . is ( false ) ) |
testEvictionListenerThatThrowsReadWriteLocked ( ) { org . terracotta . offheapstore . eviction . EvictionListenerIT . ThrowingEvictionListener listener = new org . terracotta . offheapstore . eviction . EvictionListenerIT . ThrowingEvictionListener ( ) ; org . terracotta . offheapstore . paging . PageSource source = ne... | org . junit . Assert . assertFalse ( map . containsKey ( l ) ) |
evaluateRandomForestOzone ( ) { org . jpmml . rattle . Batch batch = new org . jpmml . rattle . RattleBatch ( "RandomForest" , "Ozone" ) ; "<AssertPlaceHolder>" ; } evaluate ( org . jpmml . evaluator . Batch ) { org . jpmml . evaluator . PMML pmml = org . jpmml . evaluator . IOUtil . unmarshal ( batch . getModel ( ) ) ... | org . junit . Assert . assertTrue ( org . jpmml . rattle . BatchUtil . evaluate ( batch ) ) |
testIsConfigChangedNetConfigsDiffer ( ) { org . eclipse . kura . net . admin . monitor . EthernetMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . EthernetMonitorServiceImpl ( ) ; java . util . List < org . eclipse . kura . net . NetInterfaceAddressConfig > newConfig = new java . util . ArrayL... | org . junit . Assert . assertTrue ( result ) |
testDatasetWithoutAnId ( ) { dataset = new edu . harvard . iq . dataverse . Dataset ( ) ; edu . harvard . iq . dataverse . privateurl . PrivateUrl privateUrl = testEngine . submit ( new edu . harvard . iq . dataverse . engine . command . impl . GetPrivateUrlCommand ( null , dataset ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNull ( privateUrl ) |
testCheckTimeoutCommitting ( ) { final java . lang . Exception [ ] checkTimeoutException = new com . sun . sgs . test . impl . service . transaction . Exception [ ] { null } ; com . sun . sgs . test . util . DummyTransactionParticipant participant = new com . sun . sgs . test . util . DummyTransactionParticipant ( ) { ... | org . junit . Assert . assertNull ( checkTimeoutException [ 0 ] ) |
readErrorMessage ( ) { long session = 1L ; int code = - 200 ; java . lang . String message = "Failed!" ; cocaine . message . Message msg = cocaine . message . Messages . error ( session , code , message ) ; byte [ ] bytes = pack . write ( java . util . Arrays . asList ( 5 , session , java . util . Arrays . asList ( cod... | org . junit . Assert . assertEquals ( msg , result ) |
testAppendNullStringArray ( ) { com . liferay . petra . string . StringBundler sb = new com . liferay . petra . string . StringBundler ( ) ; sb . append ( ( ( java . lang . String [ ] ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } index ( ) { for ( Map . Entry < java . lang . String , java . util . Set < java . lang . Long... | org . junit . Assert . assertEquals ( 0 , sb . index ( ) ) |
testReadLong ( ) { java . nio . ByteBuffer byteBuffer = java . nio . ByteBuffer . allocate ( ( ( com . liferay . petra . io . DeserializerTest . _COUNT ) * 8 ) ) ; byteBuffer . order ( ByteOrder . BIG_ENDIAN ) ; java . nio . LongBuffer longBuffer = byteBuffer . asLongBuffer ( ) ; long [ ] longs = new long [ com . lifer... | org . junit . Assert . assertEquals ( longs [ i ] , deserializer . readLong ( ) ) |
filter_items_in_list_with_apache_commons ( ) { java . util . List < com . levelup . java . collections . FilterACollection . NFLTeam > nflTeams = com . google . common . collect . Lists . newArrayList ( ) ; nflTeams . add ( new com . levelup . java . collections . FilterACollection . NFLTeam ( "Green<sp>Bay<sp>Packers"... | org . junit . Assert . assertTrue ( ( ( nflTeams . size ( ) ) == 2 ) ) |
testQueryIterableWithTransformer ( ) { createDocs ( ) ; org . nuxeo . ecm . core . api . IterableQueryResult res ; res = session . queryAndFetch ( "SELECT<sp>*<sp>FROM<sp>Document<sp>WHERE<sp>ecm:isVersion<sp>=<sp>0" , "NXQL" ) ; "<AssertPlaceHolder>" ; res . close ( ) ; } size ( ) { return getCollectedDocumentIds ( ) ... | org . junit . Assert . assertEquals ( 4 , res . size ( ) ) |
validate_shouldPassValidationIfAutoExpireDateAndDurationUnitsAreNotSet ( ) { org . openmrs . DrugOrder drugOrder = createValidDrugOrder ( ) ; drugOrder . setDurationUnits ( null ) ; drugOrder . setAutoExpireDate ( null ) ; org . springframework . validation . Errors errors = new org . springframework . validation . Bin... | org . junit . Assert . assertFalse ( errors . hasErrors ( ) ) |
shouldGetAllUsers_Annotated ( ) { sqlSessionFactory . getConfiguration ( ) . addMapper ( org . apache . ibatis . submitted . duplicate_statements . AnnotatedMapper . class ) ; org . apache . ibatis . session . SqlSession sqlSession = sqlSessionFactory . openSession ( ) ; try { org . apache . ibatis . submitted . duplic... | org . junit . Assert . assertEquals ( 10 , users . size ( ) ) |
testBuildFolderPathRootServicePathNoEncoding ( ) { System . out . println ( ( ( ( getTestTraceHead ( "[NGSIHDFSSinkTest.buildFolderPath]" ) ) + "--------<sp>When<sp>no<sp>encoding<sp>and<sp>when<sp>a<sp>root<sp>service-path<sp>is<sp>notified/defaulted<sp>the<sp>HDFS<sp>folder<sp>path<sp>" ) + "--------<sp>When<sp>no<sp... | org . junit . Assert . assertEquals ( expecetedTableName , builtTableName ) |
file_is_regular_file_java ( ) { java . io . File file = source . toFile ( ) ; boolean isRegularFile = file . isFile ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( isRegularFile ) |
test2 ( ) { long [ ] [ ] lhs0 = new long [ ] [ ] { new long [ ] { 14945154 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , new long [ ] { 15840518 , 0 , 0 , 0 , 0 , 0 , 0 , 23072526 } , new long [ ] { 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 } , new long [ ] { 0 , 1 , 0 , 0 , 0 , 0 , 0 , 18556231 } , new long [ ] { 0 , 0 , 7274769 , 0 , 0 , 0 , ... | org . junit . Assert . assertArrayEquals ( cc . redberry . rings . linear . LinearSolverTest . convert ( expected ) , solution ) |
titleFoundIfCommitteeMissing ( ) { java . util . List < java . util . List < java . lang . String > > pages = gov . nysenate . openleg . processor . hearing . PublicHearingTestHelper . getPagesFromFileName ( "01-03-13<sp>HurricaneSandy_NYS<sp>TaskForce<sp>Roundtable_Final.txt" ) ; java . lang . String expected = "ROUND... | org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) ) |
testGetParametersWithDefaultEntity ( ) { org . lnu . is . domain . enrolment . benefit . EnrolmentBenefit entity = new org . lnu . is . domain . enrolment . benefit . EnrolmentBenefit ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , ja... | org . junit . Assert . assertEquals ( expected , actual ) |
testBaseDirectory ( ) { org . apache . uima . jcas . tcas . DocumentAnnotation da = getDocumentAnnotation ( ) ; da . setSourceUri ( uk . gov . dstl . baleen . annotators . misc . DocumentTypeByLocationTest . tmp . getAbsolutePath ( ) ) ; processJCas ( uk . gov . dstl . baleen . annotators . misc . DocumentTypeByLocatio... | org . junit . Assert . assertEquals ( "" , da . getDocType ( ) ) |
testCloneArrayForMultidimensionalArray ( ) { java . lang . Double [ ] [ ] expected = new java . lang . Double [ ] [ ] { new cz . zcu . kiv . jop . util . Double [ ] { 0.0 , 1.0 , 2.0 } , new cz . zcu . kiv . jop . util . Double [ ] { 3.0 } , new cz . zcu . kiv . jop . util . Double [ ] { 4.0 , 5.0 } } ; "<AssertPlaceHo... | org . junit . Assert . assertArrayEquals ( expected , ( ( java . lang . Double [ ] [ ] ) ( cz . zcu . kiv . jop . util . ArrayUtils . cloneArray ( expected ) ) ) ) |
testClone ( ) { org . apache . tajo . catalog . statistics . ColumnStats stat = new org . apache . tajo . catalog . statistics . ColumnStats ( new org . apache . tajo . catalog . Column ( "test" , org . apache . tajo . common . TajoDataTypes . Type . INT8 ) ) ; stat . setNumDistVals ( 1000 ) ; stat . setNumNulls ( 999 ... | org . junit . Assert . assertEquals ( stat , stat2 ) |
testSeparator ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "test" , "names" , "<names:{n<sp>|<sp>case<sp><n>};<sp>separator=\",<sp>\">" ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; st . add ( "names" , "Ter" ) ; st... | org . junit . Assert . assertEquals ( expected , result ) |
testCloseCaseInstance ( ) { final org . jbpm . workbench . cm . model . CaseInstanceSummary cis = caseInstanceSummaryList . remove ( 0 ) ; presenter . closeCaseInstance ( cis ) ; verify ( caseManagementService ) . closeCaseInstance ( cis . getContainerId ( ) , cis . getCaseId ( ) , null ) ; verify ( caseManagementServi... | org . junit . Assert . assertEquals ( caseInstanceSummaryList . size ( ) , captor . getValue ( ) . size ( ) ) |
testSimpleCommand ( ) { ddf . platform . scheduler . FirstArgumentAnswer captureInput = new ddf . platform . scheduler . FirstArgumentAnswer ( ) ; org . apache . karaf . shell . api . console . Session session = mock ( org . apache . karaf . shell . api . console . Session . class ) ; when ( session . execute ( isA ( d... | org . junit . Assert . assertThat ( captureInput . getInputArg ( ) , org . hamcrest . Matchers . is ( command ) ) |
testOnPortUpdatePreSuccess ( ) { java . util . ArrayList < java . lang . String > attrList = new java . util . ArrayList < java . lang . String > ( ) ; org . o3project . odenos . core . component . network . topology . Port prev = new org . o3project . odenos . core . component . network . topology . Port ( "0" , "port... | org . junit . Assert . assertThat ( target . onPortUpdatePre ( org . o3project . odenos . component . aggregator . AggregatorTest . ORIGINAL_NW_ID , prev , curr , attrList ) , org . hamcrest . CoreMatchers . is ( true ) ) |
testGetUserPreferredIIOImplementation ( ) { edu . illinois . library . cantaloupe . config . Configuration config = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) ; config . setProperty ( GIFImageReader . IMAGEIO_PLUGIN_CONFIG_KEY , "cats" ) ; "<AssertPlaceHolder>" ; } getUserPreferred... | org . junit . Assert . assertEquals ( "cats" , ( ( edu . illinois . library . cantaloupe . processor . codec . GIFImageReader ) ( instance ) ) . getUserPreferredIIOImplementation ( ) ) |
testElimina ( ) { log . debug ( "Test<sp>'elimina'<sp>paquete" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . AFEPlaza afePlaza = new mx . edu . um . mateo . inscripciones . model . AFEPlaza ( ) ; afePlaza . setClave ( "1110475" ) ; a... | org . junit . Assert . assertNotNull ( afePlaza . getId ( ) ) |
testSetReactionCenter ( ) { org . openscience . cdk . reaction . type . parameters . SetReactionCenter react = new org . openscience . cdk . reaction . type . parameters . SetReactionCenter ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( react ) |
getInstance ( ) { io . robe . hibernate . RobeHibernateBundle bundle = io . robe . hibernate . RobeHibernateBundle . getInstance ( ) ; "<AssertPlaceHolder>" ; } getInstance ( ) { io . robe . hibernate . RobeHibernateBundle bundle = io . robe . hibernate . RobeHibernateBundle . getInstance ( ) ; org . junit . Assert . a... | org . junit . Assert . assertNotNull ( bundle ) |
g_V_selectXfirst_aX ( ) { final org . apache . tinkerpop . gremlin . process . traversal . Traversal < org . apache . tinkerpop . gremlin . structure . Vertex , java . lang . Object > traversal = get_g_V_selectXfirst_aX ( ) ; printTraversalForm ( traversal ) ; "<AssertPlaceHolder>" ; } toList ( ) { return this . fill (... | org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , traversal . toList ( ) ) |
testZoekPersoon ( ) { initMocks ( nl . bzk . brp . model . bevraging . levering . ZoekPersoonBericht . class , SoortBericht . LVG_BVG_ZOEK_PERSOON ) ; initBerichtVerwerker ( new java . util . ArrayList < nl . bzk . brp . model . validatie . Melding > ( ) , nl . bzk . brp . business . dto . bevraging . BevragingResultaa... | org . junit . Assert . assertEquals ( testBericht , resultaat ) |
applyMatch ( ) { setup ( "name" ) ; org . apache . hadoop . fs . shell . PathData item = new org . apache . hadoop . fs . shell . PathData ( "/directory/path/name" , mockFs . getConf ( ) ) ; "<AssertPlaceHolder>" ; } apply ( org . apache . hadoop . fs . shell . PathData , int ) { java . lang . String name = getPath ( i... | org . junit . Assert . assertEquals ( Result . PASS , name . apply ( item , ( - 1 ) ) ) |
test_writeFloat ( float , java . lang . String ) { outputCompact . writeFloat ( input ) ; "<AssertPlaceHolder>" ; } toString ( ) { return getClass ( ) . getSimpleName ( ) ; } | org . junit . Assert . assertEquals ( buf . toString ( ) , expected ) |
expected_and_current_data_coparison_should_succeed ( ) { com . lordofthejars . nosqlunit . marklogic . MarkLogicOperation markLogicOperation = new com . lordofthejars . nosqlunit . marklogic . MarkLogicOperation ( com . lordofthejars . nosqlunit . marklogic . ManagedMarkLogicConfigurationBuilder . marklogic ( ) . build... | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) ) |
testMsgid1 ( ) { com . zx . sms . codec . smgp . msg . MsgId m = new com . zx . sms . codec . smgp . msg . MsgId ( "12345607091206000017" ) ; byte [ ] arr = com . zx . sms . codec . smgp . util . SMGPMsgIdUtil . msgId2Bytes ( m ) ; "<AssertPlaceHolder>" ; } bytes2MsgId ( byte [ ] ) { assert ( bytes . length ) == 10 ; j... | org . junit . Assert . assertEquals ( m , com . zx . sms . codec . smgp . util . SMGPMsgIdUtil . bytes2MsgId ( arr ) ) |
getCreatedAtReferenceMutableObject ( ) { org . eclipse . egit . github . core . PullRequest pullRequest = new org . eclipse . egit . github . core . PullRequest ( ) ; pullRequest . setCreatedAt ( new java . util . Date ( 10000 ) ) ; pullRequest . getCreatedAt ( ) . setTime ( 0 ) ; "<AssertPlaceHolder>" ; } getCreatedAt... | org . junit . Assert . assertTrue ( ( ( pullRequest . getCreatedAt ( ) . getTime ( ) ) != 0 ) ) |
testPlaceHolder ( ) { definition . setPlaceHolder ( org . kie . workbench . common . dmn . client . property . dmn . QNameFieldDefinitionTest . PLACE_HOLDER ) ; "<AssertPlaceHolder>" ; } getPlaceHolder ( ) { return placeHolder ; } | org . junit . Assert . assertEquals ( org . kie . workbench . common . dmn . client . property . dmn . QNameFieldDefinitionTest . PLACE_HOLDER , definition . getPlaceHolder ( ) ) |
testGetParametersWithEmptyFields ( ) { org . lnu . is . domain . asset . address . AssetAddress entity = new org . lnu . is . domain . asset . address . AssetAddress ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lang . Object... | org . junit . Assert . assertEquals ( expected , actual ) |
preserveTimestampDirCanBeDisabled ( ) { org . springframework . context . annotation . AnnotationConfigApplicationContext context = new org . springframework . context . annotation . AnnotationConfigApplicationContext ( ) ; org . springframework . boot . test . EnvironmentTestUtils . addEnvironment ( context , "sftp.pr... | org . junit . Assert . assertTrue ( ( ! ( properties . isPreserveTimestamp ( ) ) ) ) |
appendJsonAttribute_good_case_quoted_notlast ( ) { java . lang . StringBuilder stringBuilder = new java . lang . StringBuilder ( ) ; stringBuilder . append ( "prefix_" ) ; java . lang . String expResult = "prefix_\"keyname\":\"value\"," ; com . microsoft . azure . sdk . iot . service . Tools . appendJsonAttribute ( str... | org . junit . Assert . assertEquals ( expResult , stringBuilder . toString ( ) ) |
testHasPageAction ( ) { com . eclipsesource . tabris . internal . ui . PageDescriptor pageDescriptor = new com . eclipsesource . tabris . internal . ui . PageDescriptor ( "bar" , com . eclipsesource . tabris . internal . ui . TestPage . class ) ; pageDescriptor . setTopLevel ( true ) ; pageDescriptor . addAction ( new ... | org . junit . Assert . assertTrue ( hasAction ) |
test1 ( ) { org . n3r . eql . EqlTran eqlTran = new org . n3r . eql . Eql ( ) . newTran ( ) ; eqlTran . start ( ) ; org . n3r . eql . impl . EqlBatch eqlBatch = new org . n3r . eql . impl . EqlBatch ( ) ; for ( int i = 0 ; i < 10 ; ++ i ) { java . lang . String orderNo = randLetters ( 10 ) ; java . lang . String userId... | org . junit . Assert . assertThat ( ret , org . hamcrest . CoreMatchers . is ( 0 ) ) |
testReflect20 ( ) { com . ibm . wala . ipa . callgraph . AnalysisScope scope = com . ibm . wala . core . tests . callGraph . ReflectionTest . findOrCreateAnalysisScope ( ) ; com . ibm . wala . ipa . cha . IClassHierarchy cha = com . ibm . wala . core . tests . callGraph . ReflectionTest . findOrCreateCHA ( scope ) ; ja... | org . junit . Assert . assertFalse ( nodes . isEmpty ( ) ) |
testFolderExtraction ( ) { java . io . File tessDataFolder = null ; try { java . lang . String result = instance . doOCR ( imageFile ) ; net . sourceforge . tess4j . TestFolderExtraction . logger . info ( result ) ; } catch ( net . sourceforge . tess4j . TesseractException e ) { net . sourceforge . tess4j . TestFolderE... | org . junit . Assert . assertTrue ( ( ( tessDataFolder != null ) && ( tessDataFolder . exists ( ) ) ) ) |
testEncodeAndWriteStream ( ) { org . apache . fop . pdf . PDFFilterList filters = stream . getFilterList ( ) ; filters . addFilter ( "null" ) ; byte [ ] bytes = createSampleData ( ) ; stream . setData ( bytes ) ; java . io . ByteArrayOutputStream actual = new java . io . ByteArrayOutputStream ( ) ; org . apache . fop .... | org . junit . Assert . assertArrayEquals ( createSampleStreamData ( ) , actual . toByteArray ( ) ) |
testWithUniqueNameWhenNameIsUnique ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = makeDataType ( "uuid1" ) ; doReturn ( dataType ) . when ( manager ) . get ( ) ; doReturn ( asList ( makeDataType ( "uuid2" , "tPerson" ) , makeDataType ( "uuid3" , "tCity" ) ) ) ... | org . junit . Assert . assertEquals ( expectedDataTypeName , actualDataTypeName ) |
shouldAlwaysReturnSameInstanceOfBackgroundExecutor ( ) { "<AssertPlaceHolder>" ; } getBackgroundExecutor ( ) { return getExecutorInstance ( ) ; } | org . junit . Assert . assertSame ( util . getBackgroundExecutor ( ) , util . getBackgroundExecutor ( ) ) |
testOne ( ) { org . terrier . matching . MatchingQueryTerms mqt = new org . terrier . matching . MatchingQueryTerms ( ) ; mqt . add ( org . terrier . querying . parser . Query . QTPBuilder . of ( new org . terrier . matching . matchops . SingleTermOp ( "a" ) ) . build ( ) ) ; new org . terrier . querying . DependenceMo... | org . junit . Assert . assertEquals ( 1 , mqt . size ( ) ) |
testBuildFromEncodedMapComplex2 ( ) { java . util . Map < java . lang . String , java . lang . Object > maps = new java . util . HashMap ( ) ; maps . put ( "x" , "w" 2 ) ; maps . put ( "y" , "/path-absolute/test1" ) ; maps . put ( "w" 0 , "fred@example.com" ) ; maps . put ( "w" , "path-rootless/test2" ) ; maps . put ( ... | org . junit . Assert . assertEquals ( expectedPath , rawPath ) |
testConditionTask ( ) { com . jim . framework . web . SpringbootApplicationTests . ConditionTask conditionTask = new com . jim . framework . web . SpringbootApplicationTests . ConditionTask ( ) ; conditionTask . run ( ) ; java . lang . Thread . sleep ( 3000 ) ; "<AssertPlaceHolder>" ; } run ( ) { try { if ( ! ( this . ... | org . junit . Assert . assertTrue ( true ) |
testAssignedAction ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "Rule:<sp>{Foo}<sp>{Action.feat=current};" ) ; _builder . newLine ( ) ; final java . lang . String actual = this . toPda ( _builder ) ; org . eclipse . ... | org . junit . Assert . assertEquals ( expected , actual ) |
testFindIndexLessThan ( ) { org . eclipse . january . dataset . Dataset dataset = org . eclipse . january . dataset . DatasetFactory . createFromObject ( new java . lang . Double [ ] { 5.2 , 2.0 , 4.8 , 13.0 , 0.8 , 96.0 , 13.0 } ) ; int expected = 4 ; int actual = org . eclipse . january . dataset . DatasetUtils . fin... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetView ( ) { screen . init ( ) ; "<AssertPlaceHolder>" ; } getView ( ) { return view ; } | org . junit . Assert . assertEquals ( view , screen . getView ( ) ) |
sort ( ) { final com . yandex . yoctodb . mutable . DatabaseBuilder dbBuilder = com . yandex . yoctodb . DatabaseFormat . getCurrent ( ) . newDatabaseBuilder ( ) ; for ( int i = 0 ; i < ( DOCS ) ; i ++ ) { dbBuilder . merge ( com . yandex . yoctodb . DatabaseFormat . getCurrent ( ) . newDocumentBuilder ( ) . withField ... | org . junit . Assert . assertEquals ( ( "payload" + i ) , result ) |
testWrongFormatOrder ( ) { boolean raises = false ; java . util . Date now = new java . util . Date ( ) ; try { org . nuxeo . ecm . platform . audit . api . query . DateRangeParser . parseDateRangeQuery ( now , "2h2m" ) ; } catch ( org . nuxeo . ecm . platform . audit . api . query . AuditQueryException e ) { raises = ... | org . junit . Assert . assertTrue ( raises ) |
testEquals ( ) { org . bff . javampd . output . MPDOutput output1 = new org . bff . javampd . output . MPDOutput ( 1 ) ; org . bff . javampd . output . MPDOutput output2 = new org . bff . javampd . output . MPDOutput ( 1 ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( output1 , output2 ) |
testError ( ) { java . lang . Exception exception = new java . lang . Exception ( ) ; org . mockito . Mockito . when ( transactionWorker . getError ( ) ) . thenReturn ( exception ) ; "<AssertPlaceHolder>" ; } getError ( ) { return error ; } | org . junit . Assert . assertEquals ( exception , transaction . getError ( ) ) |
determineSegmentCount_boostConcurrency ( ) { int _segs = org . cache2k . core . InternalCache2kBuilder . determineSegmentCount ( false , 12 , true , 1000000 , 0 ) ; "<AssertPlaceHolder>" ; } determineSegmentCount ( boolean , int , boolean , long , int ) { int _segmentCount = 1 ; if ( _availableProcessors > 1 ) { _segme... | org . junit . Assert . assertEquals ( 16 , _segs ) |
testGetSetName ( ) { java . lang . String expectedName = "expectedName" ; com . microsoft . windowsazure . services . media . models . ContentKeyAuthorizationPolicyOptionInfo contentKeyAuthorizationPolicyOptionInfo = new com . microsoft . windowsazure . services . media . models . ContentKeyAuthorizationPolicyOptionInf... | org . junit . Assert . assertEquals ( expectedName , actualName ) |
testHandelingIsNietVerwerktEnLockKanWordenGeplaatst ( ) { final boolean resultaat = administratieveHandelingLockRepository . vergrendelAlsNogNietIsVerwerkt ( nl . bzk . brp . levering . dataaccess . repository . lezenschrijven . AdministratieveHandelingVergrendelRepositoryTest . ADMINISTRATIEVE_HANDELING_ID ) ; "<Asser... | org . junit . Assert . assertTrue ( resultaat ) |
testFormatSqsQueueName_ReplacesNonAlphaNumeric ( ) { java . lang . String expected = "prod-foo-bar" ; java . lang . String actual = com . streamreduce . util . SqsQueueNameFormatter . formatSqsQueueName ( "foo*bar" , "prod" ) ; "<AssertPlaceHolder>" ; } formatSqsQueueName ( java . lang . String , java . lang . String )... | org . junit . Assert . assertEquals ( expected , actual ) |
test_createBuildExportHandler_nullVersion ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; parameters . put ( IBuildParametes . ITEM , PropertiesFactory . eINSTANCE . createProcessItem ( ) ) ; org . talen... | org . junit . Assert . assertNull ( provider . createBuildExportHandler ( parameters ) ) |
testExtraEndpoint ( ) { java . lang . String extraEndpoint = ( "http://localhost:" + ( port ) ) + "/rest/extra" ; org . kie . server . common . rest . KieServerHttpRequest httpRequest = org . kie . server . common . rest . KieServerHttpRequest . newRequest ( extraEndpoint , user , password ) . followRedirects ( true ) ... | org . junit . Assert . assertEquals ( 200 , responseCode ) |
testOnPistonExtendFlagSetOffIsland ( ) { when ( island . onIsland ( org . mockito . Mockito . any ( ) ) ) . thenReturn ( false ) ; org . bukkit . event . block . BlockPistonExtendEvent e = new org . bukkit . event . block . BlockPistonExtendEvent ( block , blocks , org . bukkit . block . BlockFace . EAST ) ; new world ... | org . junit . Assert . assertTrue ( e . isCancelled ( ) ) |
isPoint_overEdgeEntries_resultIsFalse ( ) { drawingMotion . addPoint ( 0 , 0 ) ; drawingMotion . addPoint ( java . lang . Math . nextUp ( DrawingMotion . POINT_TOLERANCE ) , 0 ) ; drawingMotion . addPoint ( ( - ( java . lang . Math . nextUp ( DrawingMotion . POINT_TOLERANCE ) ) ) , 0 ) ; drawingMotion . addPoint ( 0 , ... | org . junit . Assert . assertThat ( drawingMotion . isPoint ( ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testConvertEmlContributorUserIdWithMissingSchemeURI ( ) { org . gbif . metadata . eml . UserId userId1 = new org . gbif . metadata . eml . UserId ( "" , "0000-0099-6824-9999" ) ; "<AssertPlaceHolder>" ; } convertEmlUserIdIntoContributorNameIdentifier ( org . gbif . metadata . eml . UserId ) { if ( ( ! ( com . google . ... | org . junit . Assert . assertNull ( org . gbif . ipt . utils . DataCiteMetadataBuilder . convertEmlUserIdIntoContributorNameIdentifier ( userId1 ) ) |
testManyFalseFilters ( ) { com . northconcepts . eventbus . EventFilter filter = new com . northconcepts . eventbus . filter . AndFilter ( FALSE_FILTER , FALSE_FILTER , FALSE_FILTER ) ; "<AssertPlaceHolder>" ; } allow ( com . northconcepts . eventbus . Event , java . lang . Object ) { return true ; } | org . junit . Assert . assertFalse ( filter . allow ( event , listener ) ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . polls . model . PollsChoice > pollsChoices = _persistence . fetchByPrimaryKeys ( primaryK... | org . junit . Assert . assertTrue ( pollsChoices . isEmpty ( ) ) |
testOperationIdResolver ( ) { final com . github . phiz71 . vertx . swagger . router . ServiceIdResolver resolver = new com . github . phiz71 . vertx . swagger . router . OperationIdServiceIdResolver ( ) ; final java . lang . String serviceId = resolver . resolve ( HttpMethod . GET , "/some/path" , new io . swagger . m... | org . junit . Assert . assertEquals ( "testOperationIdResolver" , serviceId ) |
getLoad ( ) { org . jboss . modcluster . container . Engine engine = mock ( org . jboss . modcluster . container . Engine . class ) ; org . jboss . modcluster . container . Connector connector = mock ( org . jboss . modcluster . container . Connector . class ) ; org . jboss . modcluster . load . metric . impl . Determi... | org . junit . Assert . assertEquals ( 9.0 , load , 0.0 ) |
testBounceString ( ) { "<AssertPlaceHolder>" ; } bounce_string ( java . lang . String ) { return value ; } | org . junit . Assert . assertEquals ( line , server . bounce_string ( line ) ) |
testUserSets ( ) { java . lang . String code = "" ; try { code = _setupTestUser ( true ) ; _checkUserIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkUserIntoDb ( java . lang . String ) { org . isf . menu . model . User foundUser ; foundUser ... | org . junit . Assert . assertEquals ( true , false ) |
testMapCache ( ) { org . opentripplanner . model . FareRule result1 = subject . map ( org . opentripplanner . gtfs . mapping . FareRuleMapperTest . FARE_RULE ) ; org . opentripplanner . model . FareRule result2 = subject . map ( org . opentripplanner . gtfs . mapping . FareRuleMapperTest . FARE_RULE ) ; "<AssertPlaceHo... | org . junit . Assert . assertTrue ( ( result1 == result2 ) ) |
testListMessagesResultNoMessagesListed ( ) { try { final java . lang . String listResult = "00003" + "410" ; final java . lang . String listMessagesResult = listResult + ( nl . bzk . migratiebrp . voisc . mailbox . client . impl . MailboxServerProxyTest . TERMINATOR ) ; org . mockito . Mockito . when ( mbsConnection . ... | org . junit . Assert . assertEquals ( 0 , nextMSSequenceNumber ) |
in_memory_configuration_should_use_targeted_instance ( ) { org . neo4j . graphdb . GraphDatabaseService graphDatabaseService1 = mock ( org . neo4j . graphdb . GraphDatabaseService . class ) ; org . neo4j . graphdb . GraphDatabaseService graphDatabaseService2 = mock ( org . neo4j . graphdb . GraphDatabaseService . class... | org . junit . Assert . assertThat ( embeddedConfiguration . getGraphDatabaseService ( ) , org . hamcrest . CoreMatchers . is ( graphDatabaseService2 ) ) |
getCompressionTypeTarFromMetadataSuccess ( ) { when ( obj . getKey ( ) ) . thenReturn ( ( ( ( ( "A" + ( java . io . File . separator ) ) + "File" ) + ( java . io . File . separator ) ) + "XK321K" ) ) ; when ( metadata . getContentType ( ) ) . thenReturn ( "application/tar" ) ; final com . amazonaws . codepipeline . jen... | org . junit . Assert . assertEquals ( CompressionType . Tar , compressionType ) |
testAllocateAndSuccessorSize ( ) { final tlc2 . tool . liveness . GraphNode node = new tlc2 . tool . liveness . GraphNode ( 0 , 0 ) ; node . addTransition ( 0 , 0 , 0 , 0 , null , 0 , 100 ) ; "<AssertPlaceHolder>" ; } succSize ( ) { if ( ( this . offset ) != ( tlc2 . tool . liveness . GraphNode . NO_FREE_SLOTS ) ) { re... | org . junit . Assert . assertEquals ( 1 , node . succSize ( ) ) |
shouldNotHandleRequest_noBearerValue ( ) { io . gravitee . common . http . HttpHeaders headers = new io . gravitee . common . http . HttpHeaders ( ) ; io . gravitee . gateway . api . Request request = mock ( io . gravitee . gateway . api . Request . class ) ; when ( request . headers ( ) ) . thenReturn ( headers ) ; he... | org . junit . Assert . assertFalse ( handle ) |
shouldNotTransferFromUnknownAccount ( ) { try { accountService . transfer ( ( - 1 ) , 2 , 50 ) ; entityManager . flush ( ) ; org . junit . Assert . fail ( "Expected<sp>UnknownAccountException" ) ; } catch ( com . jayway . service . UnknownAccountException e ) { } int secondBalance = getBalance ( 2 ) ; "<AssertPlaceHold... | org . junit . Assert . assertThat ( secondBalance , org . hamcrest . CoreMatchers . is ( 200 ) ) |
calculateListWithNulls ( ) { cucumber . runtime . formatter . UsageFormatter . AverageUsageStatisticStrategy averageUsageStatisticStrategy = new cucumber . runtime . formatter . UsageFormatter . AverageUsageStatisticStrategy ( ) ; java . lang . Long result = averageUsageStatisticStrategy . calculate ( java . util . Arr... | org . junit . Assert . assertEquals ( result , java . lang . Long . valueOf ( 0 ) ) |
testParseString ( ) { java . math . BigInteger bigInteger = new java . math . BigInteger ( "200" ) ; "<AssertPlaceHolder>" ; } parseString ( java . math . BigInteger ) { return value . toString ( ) ; } | org . junit . Assert . assertEquals ( handler . parseString ( bigInteger ) , "200" ) |
createInnerNode_elementNonNull_canRetrieveElement ( ) { java . lang . String element = "element" ; org . codefx . libfx . collection . tree . stream . SimpleTreeNode < java . lang . String > node = org . codefx . libfx . collection . tree . stream . SimpleTreeNode . innerNode ( element , 0 ) ; "<AssertPlaceHolder>" ; }... | org . junit . Assert . assertSame ( element , node . getElement ( ) ) |
testIsJavaVersionAtLeast ( ) { "<AssertPlaceHolder>" ; } isJavaVersionAtLeast ( int ) { return ( org . apache . hadoop . util . Shell . JAVA_SPEC_VER ) >= version ; } | org . junit . Assert . assertTrue ( org . apache . hadoop . util . Shell . Shell . isJavaVersionAtLeast ( 8 ) ) |
testInitWithBuilder_and_reachable_check ( ) { try ( net . sourceforge . jwbf . JettyServer server = new net . sourceforge . jwbf . JettyServer ( ) . started ( net . sourceforge . jwbf . JettyServer . echoHandler ( ) ) ) { java . lang . String url = server . getTestUrl ( ) ; testee = new net . sourceforge . jwbf . media... | org . junit . Assert . assertNotNull ( testee ) |
testGetSupportedIIIF1Qualities ( ) { edu . illinois . library . cantaloupe . processor . Processor proc = newInstance ( ) ; proc . setSourceFormat ( getAnySupportedSourceFormat ( proc ) ) ; java . util . Set < edu . illinois . library . cantaloupe . resource . iiif . v1 . Quality > expectedQualities = java . util . Enu... | org . junit . Assert . assertEquals ( expectedQualities , proc . getSupportedIIIF1Qualities ( ) ) |
testCreatePastMedicalHistorySectionConsultBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . cdt . PastMedicalHistorySection > sectionBuilder = org . openhealthtools . mdht . uml . cda . cdt . builder . CDTBuilderFactory . createPastMedicalHist... | org . junit . Assert . assertNotNull ( section ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.