input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
jexlNodeInequality ( ) { org . apache . commons . jexl2 . parser . ASTJexlScript one = datawave . query . jexl . JexlASTHelper . parseJexlQuery ( "FOO<sp>==<sp>'1'" ) ; org . apache . commons . jexl2 . parser . ASTJexlScript two = datawave . query . jexl . JexlASTHelper . parseJexlQuery ( "'1'<sp>==<sp>'1'" ) ; "<Asser...
org . junit . Assert . assertFalse ( datawave . query . jexl . JexlASTHelper . equals ( one , two ) )
testReadDocumentWithoutAttachmentElements ( ) { org . apache . cxf . ws . policy . attachment . external . ExternalAttachmentProvider eap = new org . apache . cxf . ws . policy . attachment . external . ExternalAttachmentProvider ( ) ; java . net . URL url = org . apache . cxf . ws . policy . attachment . external . Ex...
org . junit . Assert . assertTrue ( eap . getAttachments ( ) . isEmpty ( ) )
testReaderCount ( ) { java . util . UUID id = java . util . UUID . randomUUID ( ) ; writeSegment ( id ) ; tarFiles . newWriter ( ) ; "<AssertPlaceHolder>" ; } readerCount ( ) { try ( org . apache . jackrabbit . oak . segment . file . ShutDown . ShutDownCloser ignored = shutDown . keepAlive ( ) ) { return tarFiles . rea...
org . junit . Assert . assertEquals ( 1 , tarFiles . readerCount ( ) )
testSecurityContextJsonWhenAGroupHasAQuote ( ) { final org . jboss . errai . security . shared . api . identity . UserImpl user = new org . jboss . errai . security . shared . api . identity . UserImpl ( "Mary" , roles ( "admin" ) , groups ( "girls\"" , "programmer" , "admin" ) ) ; final java . lang . String json = fil...
org . junit . Assert . assertTrue ( isValid ( json ) )
testDisplayBgpOperationalStateFound ( ) { createDefaultProtocol ( ) ; org . opendaylight . protocol . bgp . cli . utils . BGPOperationalStateUtils . displayBgpOperationalState ( getDataBroker ( ) , this . stream , org . opendaylight . protocol . bgp . cli . utils . BGPOperationalStateUtilsTest . RIB_ID , null , null ) ...
org . junit . Assert . assertEquals ( expected , this . output . toString ( ) )
getGroupDisplayName ( ) { servlet . setExpectedMethodName ( "getGroupDisplayName" ) ; servlet . setFakeResponse ( "group1" ) ; "<AssertPlaceHolder>" ; } getGroupDisplayName ( java . lang . String ) { return userRegistry . getGroupDisplayName ( securityName ) ; }
org . junit . Assert . assertEquals ( "group1" , servlet . getGroupDisplayName ( "group1" ) )
shouldScheduleToNowByDecisionOutputs ( ) { testRule . deploy ( CALLING_PROCESS_CALLS_DMN ) ; org . camunda . bpm . engine . impl . util . ClockUtil . setCurrentTime ( END_DATE ) ; runtimeService . startProcessInstanceByKey ( CALLING_PROCESS_CALLS_DMN_KEY , org . camunda . bpm . engine . variable . Variables . createVar...
org . junit . Assert . assertThat ( job . getDuedate ( ) , org . hamcrest . core . Is . is ( removalTime ) )
insertTest2 ( ) { org . ansj . library . DicLibrary . insert ( DicLibrary . DEFAULT , "" ) ; org . ansj . domain . Result parse = org . ansj . splitWord . analysis . DicAnalysis . parse ( "" ) ; System . out . println ( parse ) ; boolean flag = false ; for ( org . ansj . domain . Term term : parse ) { flag = flag || ( ...
org . junit . Assert . assertTrue ( flag )
testPackageBuilder ( ) { org . nuxeo . connect . update . util . PackageBuilder builder = new org . nuxeo . connect . update . util . PackageBuilder ( ) ; builder . name ( "nuxeo-automation" ) . version ( "5.3.2" ) . type ( PackageType . ADDON ) ; builder . title ( "Nuxeo<sp>Automation" ) . description ( "5.3.2" 1 ) ; ...
org . junit . Assert . assertTrue ( file . exists ( ) )
shouldReturnPersoonsLijst ( ) { org . apache . commons . chain . Context context = new org . apache . commons . chain . impl . ContextBase ( ) ; context . put ( ContextParameterNames . AANTAL_THREADS , 2 ) ; context . put ( ContextParameterNames . AANTAL_PERSOONSLIJSTEN , 10 ) ; java . util . List < nl . bzk . brp . be...
org . junit . Assert . assertThat ( average . size ( ) , org . hamcrest . Matchers . is ( 2 ) )
heeftVerstrekkingsbeperkingAlsIndicatieVolledigeVerstrekkingsbeperkingEnSpecifiekeBeperking ( ) { nl . bzk . brp . model . hisvolledig . kern . PersoonHisVolledig persoon = nl . bzk . brp . util . testpersoonbouwers . TestPersoonAntwoordPersoon . maakAntwoordPersoon ( ) ; nl . bzk . brp . model . hisvolledig . momentvi...
org . junit . Assert . assertThat ( view . heeftVerstrekkingsbeperking ( ) , org . hamcrest . Matchers . is ( true ) )
testAppendFailMessage ( ) { final de . saly . javamail . mock2 . MockMailbox mb = de . saly . javamail . mock2 . MockMailbox . get ( "hendrik@unknown.com" ) ; final de . saly . javamail . mock2 . MailboxFolder mf = mb . getInbox ( ) ; final javax . mail . internet . MimeMessage msg = new javax . mail . internet . MimeM...
org . junit . Assert . assertEquals ( 4 , inbox . getMessageCount ( ) )
testIsMultipleViewPatternAvailable ( ) { mmarquee . automation . pattern . MultipleView pattern = org . mockito . Mockito . mock ( mmarquee . automation . pattern . MultipleView . class ) ; when ( pattern . isAvailable ( ) ) . thenReturn ( true ) ; mmarquee . automation . controls . AutomationWindow window = new mmarqu...
org . junit . Assert . assertTrue ( value )
addDeptTest ( ) { com . stylefeng . guns . common . persistence . model . Dept dept = new com . stylefeng . guns . common . persistence . model . Dept ( ) ; dept . setFullname ( "fullname" ) ; dept . setNum ( 5 ) ; dept . setPid ( 1 ) ; dept . setSimplename ( "" ) ; dept . setTips ( "tips" ) ; dept . setVersion ( 1 ) ;...
org . junit . Assert . assertEquals ( insert , new java . lang . Integer ( 1 ) )
getItems ( ) { mmarquee . automation . controls . menu . AutomationMenu menu = new mmarquee . automation . controls . menu . AutomationMenu ( new mmarquee . automation . controls . ElementBuilder ( element ) ) ; java . util . List < mmarquee . automation . AutomationElement > itemElements = new java . util . LinkedList...
org . junit . Assert . assertEquals ( targetElement , items . get ( 0 ) . getElement ( ) )
transformsCredentialsToPrincipalsWhenAuthIsOptional ( ) { java . lang . String response = queryWithValidCredentials ( false ) ; "<AssertPlaceHolder>" ; } queryWithValidCredentials ( boolean ) { return get ( com . bazaarvoice . auth . hmac . server . HmacAuthProviderTest . GOOD_API_KEY , authRequired ) ; }
org . junit . Assert . assertEquals ( com . bazaarvoice . auth . hmac . server . HmacAuthProviderTest . GOOD_API_KEY , response )
testSelectAllBaseTable ( ) { java . lang . String expected = "select<sp>*<sp>from<sp>`myschema`.`mytable`<sp>as<sp>t" ; org . verdictdb . sqlreader . NonValidatingSQLParser sqlToRelation = new org . verdictdb . sqlreader . NonValidatingSQLParser ( ) ; org . verdictdb . core . sqlobject . AbstractRelation sel = sqlToRel...
org . junit . Assert . assertEquals ( expected , actual )
shouldReturn5StarRating ( ) { byte [ ] bytes = new byte [ ] { 'A' , 'd' , 'd' , 'r' , 'e' , 's' , 's' , 0 , ( ( byte ) ( 255 ) ) } ; com . mpatric . mp3agic . ID3v2PopmFrameData iD3v2PopmFrameData = new com . mpatric . mp3agic . ID3v2PopmFrameData ( false , bytes ) ; "<AssertPlaceHolder>" ; } getRating ( ) { return rat...
org . junit . Assert . assertEquals ( 5 , iD3v2PopmFrameData . getRating ( ) )
deveObterEmailComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno ( ) ; final java . lang . String email = "teste@teste.com" ; eventoRetorno . setEmail ( email ...
org . junit . Assert . assertEquals ( email , eventoRetorno . getEmail ( ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . cdt . operations . LevelTwoConformanceOperations obj = new org . openhealthtools . mdht . uml . cda . cdt . operations . LevelTwoConformanceOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testCheckPreFlightRequestTypeEmptyACRM ( ) { org . apache . catalina . filters . TesterHttpServletRequest request = new org . apache . catalina . filters . TesterHttpServletRequest ( ) ; request . setHeader ( CorsFilter . REQUEST_HEADER_ORIGIN , TesterFilterConfigs . HTTP_TOMCAT_APACHE_ORG ) ; request . setHeader ( Cor...
org . junit . Assert . assertEquals ( CorsFilter . CORSRequestType . INVALID_CORS , requestType )
testPropertyGroupsAreIsolate ( ) { java . util . List < javax . servlet . descriptor . TaglibDescriptor > taglibs = java . util . Collections . emptyList ( ) ; java . util . List < javax . servlet . descriptor . JspPropertyGroupDescriptor > propertyGroups = new java . util . ArrayList ( ) ; propertyGroups . add ( new o...
org . junit . Assert . assertEquals ( propertyGroups , descriptor . getJspPropertyGroups ( ) )
testAnnotationRenameService ( ) { java . util . List < org . switchyard . config . model . composite . ComponentModel > components = _scannedModel . getComposite ( ) . getComponents ( ) ; boolean customReferenceNameFound = false ; for ( org . switchyard . config . model . composite . ComponentModel component : componen...
org . junit . Assert . assertTrue ( customReferenceNameFound )
givenInvalidContactName_whenSearch_thenRetunNull ( ) { given ( phoneBookRepository . contains ( xContactName ) ) . willReturn ( false ) ; java . lang . String phoneNumber = phoneBookService . search ( xContactName ) ; then ( phoneBookRepository ) . should ( ) . contains ( xContactName ) ; then ( phoneBookRepository ) ....
org . junit . Assert . assertEquals ( phoneNumber , null )
testGetFirstDataPacketTimeout ( ) { com . digi . xbee . api . models . XBeePacketsQueue xbeePacketsQueue = org . powermock . api . mockito . PowerMockito . spy ( new com . digi . xbee . api . models . XBeePacketsQueue ( 5 ) ) ; for ( int i = 0 ; i < 3 ; i ++ ) xbeePacketsQueue . addPacket ( org . mockito . Mockito . mo...
org . junit . Assert . assertNull ( xbeePacket )
unjoinCurrentUserToSitePreservesDotsInSiteIdQueryParams ( ) { org . sakaiproject . entitybroker . EntityView entityView = new org . sakaiproject . entitybroker . EntityView ( "/membership/unjoin" ) ; entityView . setMethod ( EntityView . Method . POST ) ; entityView . setViewKey ( EntityView . VIEW_NEW ) ; org . sakaip...
org . junit . Assert . assertTrue ( provider . unjoinCurrentUserFromSite ( entityView , params ) )
collectValues ( ) { org . eclipse . collections . api . multimap . Multimap < java . lang . String , java . lang . Integer > multimap = this . newMultimapWithKeysValues ( "1" , 1 , "1" , 12 , "2" , 2 , "3" , 3 ) ; org . eclipse . collections . api . multimap . Multimap < java . lang . String , java . lang . String > co...
org . junit . Assert . assertEquals ( expectedMultimap , collectedMultimap )
bepaalGeldigheidsdatums ( ) { java . lang . reflect . Method pmBGR = nl . bzk . migratiebrp . conversie . regels . proces . brpnaarlo3 . attributen . AbstractBrpGroepConverteerder . class . getDeclaredMethod ( "bepaalGecreeerdeRijen" , nl . bzk . migratiebrp . conversie . model . brp . BrpActie . class , java . util . ...
org . junit . Assert . assertEquals ( 9 , result . size ( ) )
gapTest3 ( ) { soot . jimple . infoflow . methodSummary . generator . SummaryGenerator generator = new soot . jimple . infoflow . methodSummary . generator . SummaryGeneratorFactory ( ) . initSummaryGenerator ( ) ; soot . jimple . infoflow . methodSummary . data . summary . ClassSummaries summaries = generator . create...
org . junit . Assert . assertNotNull ( flow )
testListAll ( ) { java . util . List < org . candlepin . dto . api . v1 . PoolDTO > pools = poolResource . list ( null , null , null , false , null , setupAdminPrincipal ( "superadmin" ) , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return virtUuidToConsumerMap . keySet ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , pools . size ( ) )
apiGetProductTest ( ) { java . util . Map product = wooCommerce . get ( EndpointBaseType . PRODUCTS . getValue ( ) , 79 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertNotNull ( product )
shouldRemoveArgument ( ) { com . oracle . bedrock . runtime . options . Arguments arguments = com . oracle . bedrock . runtime . options . Arguments . empty ( ) . with ( java . util . Arrays . asList ( "1" , "2" , "3" ) ) . without ( com . oracle . bedrock . runtime . options . Argument . of ( "2" ) ) ; "<AssertPlaceHo...
org . junit . Assert . assertThat ( arguments . resolve ( null , null ) , contains ( "1" , "3" ) )
testBugPattern ( ) { org . opengrok . indexer . configuration . RuntimeEnvironment instance = org . opengrok . indexer . configuration . RuntimeEnvironment . getInstance ( ) ; java . lang . String [ ] tests = new java . lang . String [ ] { "\\b([12456789][0-9]{6})\\b" , "\\b(#\\d+)\\b" , "(BUG123)" , "\\sbug=(\\d+[a-t]...
org . junit . Assert . assertEquals ( test , instance . getBugPattern ( ) )
testToHystrixCommandGroupKey ( ) { org . apache . servicecomb . core . Invocation invocation = org . mockito . Mockito . mock ( org . apache . servicecomb . core . Invocation . class ) ; org . apache . servicecomb . bizkeeper . CustomizeCommandGroupKey customizeCommandGroupKey = ( ( org . apache . servicecomb . bizkeep...
org . junit . Assert . assertEquals ( invocation , customizeCommandGroupKey . getInstance ( ) )
testIsIngezetene ( ) { org . mockito . Mockito . when ( bral0106 . isIngezetene ( org . mockito . Matchers . any ( nl . bzk . brp . model . logisch . kern . Persoon . class ) ) ) . thenReturn ( true ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > resultaat = brby0913 . voerRegelUit ( n...
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
testTopHitsAggregation ( ) { com . liferay . portal . search . aggregation . metrics . TopHitsAggregation topHitsAggregation = com . liferay . portal . search . aggregations . test . AggregationsInstantiationTest . _aggregations . topHits ( "name" ) ; "<AssertPlaceHolder>" ; } topHits ( java . lang . String ) { return ...
org . junit . Assert . assertNotNull ( topHitsAggregation )
toCsv_empty ( ) { "<AssertPlaceHolder>" ; } toCsv ( java . lang . String [ ] ) { if ( strings == null ) { return null ; } java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; for ( java . lang . String string : strings ) { builder . append ( com . psddev . dari . util . StringUtils . escapeCsv ( ...
org . junit . Assert . assertEquals ( "" , com . psddev . dari . util . StringUtils . toCsv ( "" ) )
popupButton_addAndShowListSelectPopup_PopupShownCorrectly ( ) { headerPage . loadTestFixture ( TestFixtures . PopupButton ) ; com . vaadin . addon . spreadsheet . elements . SpreadsheetElement spreadsheetElement = $ ( com . vaadin . addon . spreadsheet . elements . SpreadsheetElement . class ) . first ( ) ; final com ....
org . junit . Assert . assertTrue ( spreadsheetElement . isPopupButtonPopupVisible ( ) )
shouldNotifyNewListenersAfterStart ( ) { commandFuture . start ( ) ; commandFuture . addListener ( listener ) ; commandFuture . processEvents ( ) ; "<AssertPlaceHolder>" ; } notifiedOfStart ( ) { return ( startNotificationOrder ) != 0 ; }
org . junit . Assert . assertTrue ( listener . notifiedOfStart ( ) )
whenIsPowerOfTwoDouble_shouldReturnTrueIfIsPowerOfTwo ( ) { boolean result = com . google . common . math . DoubleMath . isMathematicalInteger ( 4 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( result )
shouldHandleNoProcessesPresent ( ) { when ( os . getProcesses ( anyInt ( ) , any ( OperatingSystem . ProcessSort . class ) ) ) . thenReturn ( new oshi . software . os . OSProcess [ 0 ] ) ; com . krillsson . sysapi . core . domain . processes . ProcessesInfo processesInfo = provider . processesInfo ( OperatingSystem . P...
org . junit . Assert . assertTrue ( processesInfo . getProcesses ( ) . isEmpty ( ) )
testGet ( ) { java . util . Map < java . lang . String , java . lang . String > map = org . apache . activemq . artemis . utils . collections . NoOpMap . instance ( ) ; map . put ( "hello" , "world" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return federations . get ( name ) ; }
org . junit . Assert . assertNull ( map . get ( "hello" ) )
checkKeyExtractor ( java . lang . String , java . lang . String , java . lang . String ) { final java . lang . String keyPath = com . orbitz . consul . cache . KVCache . prepareRootPath ( rootPath ) ; java . util . function . Function < com . orbitz . consul . model . kv . Value , java . lang . String > keyExtractor = ...
org . junit . Assert . assertEquals ( expected , keyExtractor . apply ( createValue ( input ) ) )
enum_specimen_type_request_returns_instance_of_that_enum ( ) { java . lang . Object result = createEnum ( ) ; "<AssertPlaceHolder>" ; } createEnum ( ) { return this . enumBuilder . create ( com . flextrade . jfixture . utility . SpecimenType . of ( com . flextrade . jfixture . builders . TestEnumBuilder . TestEnum . cl...
org . junit . Assert . assertTrue ( ( result instanceof com . flextrade . jfixture . builders . TestEnumBuilder . TestEnum ) )
resolve ( ) { org . xwiki . url . ExtendedURL extendedURL = new org . xwiki . url . ExtendedURL ( java . util . Arrays . asList ( "attach:wiki:space.page@attachment" , "path1" , "path2" , "test.txt" ) , java . util . Collections . singletonMap ( "key" , java . util . Arrays . asList ( "value" ) ) ) ; org . xwiki . vfs ...
org . junit . Assert . assertEquals ( expected , reference )
resolveArtifactViaDefaultProfile ( ) { java . lang . System . setProperty ( "org.ops4j.pax.url.mvn.settings" , "src/test/resources/settings-knopflerfish-default.xml" ) ; java . net . URL url = new java . net . URL ( "mvn:org.knopflerfish/framework/7.0.1/pom" ) ; url . openStream ( ) . close ( ) ; java . io . File artif...
org . junit . Assert . assertThat ( artifact . exists ( ) , org . hamcrest . CoreMatchers . is ( true ) )
test_getAdded ( ) { forVectorPairs ( new org . eclipse . gef . geometry . tests . VectorTests . VectorPairAction ( ) { @ org . eclipse . gef . geometry . tests . Override public void action ( org . eclipse . gef . geometry . euclidean . Vector a , org . eclipse . gef . geometry . euclidean . Vector b ) { "<AssertPlaceH...
org . junit . Assert . assertTrue ( a . getAdded ( b ) . equals ( new org . eclipse . gef . geometry . euclidean . Vector ( ( ( a . x ) + ( b . x ) ) , ( ( a . y ) + ( b . y ) ) ) ) )
testDeployments ( ) { org . jboss . as . core . model . test . KernelServices kernelServices = createKernelServicesBuilder ( TestModelType . STANDALONE ) . setXmlResource ( "standalone.xml" ) . createContentRepositoryContent ( "12345678901234567890" ) . build ( ) ; "<AssertPlaceHolder>" ; java . lang . String marshalle...
org . junit . Assert . assertTrue ( kernelServices . isSuccessfulBoot ( ) )
copyFile_SameFile ( ) { try { java . io . File fileSrc = com . archimatetool . tests . TestUtils . createTempFile ( ".txt" ) ; com . archimatetool . editor . utils . FileUtils . copyFile ( fileSrc , fileSrc , false ) ; org . junit . Assert . fail ( "Should<sp>have<sp>thrown<sp>an<sp>Exception" ) ; } catch ( java . io ....
org . junit . Assert . assertTrue ( true )
testGetMetadataAsync ( ) { when ( androidAppService . getAndroidAppAsync ( com . google . firebase . projectmanagement . AndroidAppTest . APP_ID ) ) . thenReturn ( createApiFuture ( com . google . firebase . projectmanagement . AndroidAppTest . ANDROID_APP_METADATA ) ) ; com . google . firebase . projectmanagement . An...
org . junit . Assert . assertEquals ( metadata , com . google . firebase . projectmanagement . AndroidAppTest . ANDROID_APP_METADATA )
testHttpStatus ( ) { javax . ws . rs . core . Response . StatusType oStatus = new org . apache . servicecomb . swagger . invocation . context . HttpStatus ( 204 , "InternalServerError" ) ; "<AssertPlaceHolder>" ; } getReasonPhrase ( ) { return reason ; }
org . junit . Assert . assertEquals ( "InternalServerError" , oStatus . getReasonPhrase ( ) )
testPrepare ( ) { message . setDataConfig ( new byte [ ] { 6 , 6 , 6 } ) ; preparator . prepare ( ) ; "<AssertPlaceHolder>" ; } getCompleteResultingMessage ( ) { return completeResultingMessage ; }
org . junit . Assert . assertArrayEquals ( new byte [ ] { 6 , 6 , 6 } , message . getCompleteResultingMessage ( ) . getValue ( ) )
toSortedArray ( ) { "<AssertPlaceHolder>" ; } fromTo ( int , int ) { if ( from <= to ) { return org . eclipse . collections . impl . list . primitive . IntInterval . fromToBy ( from , to , 1 ) ; } return org . eclipse . collections . impl . list . primitive . IntInterval . fromToBy ( from , to , ( - 1 ) ) ; }
org . junit . Assert . assertArrayEquals ( new int [ ] { 1 , 2 , 3 , 4 } , org . eclipse . collections . impl . list . primitive . IntInterval . fromTo ( 4 , 1 ) . toSortedArray ( ) )
stringMapping ( ) { final java . lang . String expected = "duke" ; com . airhacks . enhydrator . in . Row row = new com . airhacks . enhydrator . in . Row ( ) ; row . addColumn ( ( - 1 ) , "name" , expected ) ; this . cut . processRow ( row ) ; com . airhacks . enhydrator . out . Developer dev = getDeveloper ( ) ; java...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
testList ( ) { final com . speedment . common . codegen . model . File file = com . speedment . common . codegen . model . File . of ( "Make<sp>sure<sp>generated<sp>file<sp>matches<sp>expected:" 4 ) . add ( com . speedment . common . codegen . model . Import . of ( java . util . ArrayList . class ) ) . add ( com . spee...
org . junit . Assert . assertEquals ( "Make<sp>sure<sp>generated<sp>file<sp>matches<sp>expected:" , expected , actual )
testNonceFails ( ) { final com . allanbank . mongodb . MongoDbException injected = new com . allanbank . mongodb . MongoDbException ( "Injected" ) ; final com . allanbank . mongodb . client . connection . Connection mockConnection = createMock ( com . allanbank . mongodb . client . connection . Connection . class ) ; m...
org . junit . Assert . assertSame ( injected , good )
testIntersection ( ) { org . locationtech . jts . geom . GeometryFactory fact = new org . locationtech . jts . geom . GeometryFactory ( ) ; final org . locationtech . jts . geom . LinearRing ring = fact . createLinearRing ( new org . locationtech . jts . geom . Coordinate [ ] { new org . locationtech . jts . geom . Coo...
org . junit . Assert . assertTrue ( expected . equals ( result ) )
testGetRingSize ( ) { org . openscience . cdk . interfaces . IChemObject object = newChemObject ( ) ; org . openscience . cdk . interfaces . IRing r = object . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IRing . class , 5 , "C" ) ; "<AssertPlaceHolder>" ; } getRingSize ( ) { return this . atom...
org . junit . Assert . assertEquals ( 5 , r . getRingSize ( ) )
ensureMissingFileReturns404 ( ) { java . util . Map < java . lang . String , java . lang . String > payload = hashMap ( "name" , "assettest" ) ; org . apache . usergrid . rest . test . resource . model . ApiResponse postResponse = pathResource ( getOrgAppPath ( "missingFile" ) ) . post ( payload ) ; java . util . UUID ...
org . junit . Assert . assertNotNull ( assetId )
runTestReflection8 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "Reflection/Reflection8.apk" , null , enableReflectionCallback ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( this . results ) == null ? 0 : this . results . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
test ( ) { java . util . Map < java . lang . Object , java . lang . Object > root = new java . util . HashMap ( ) ; ognl . OgnlContext context = ( ( ognl . OgnlContext ) ( ognl . Ognl . createDefaultContext ( root ) ) ) ; root . put ( "val1" , null ) ; root . put ( StringFunction . SHORT_NAME , expressionFunction ) ; o...
org . junit . Assert . assertTrue ( ( ( boolean ) ( ognl . Ognl . getValue ( "SF.isEmpty(val1)" , context , root , null ) ) ) )
testAvroColumnName ( ) { java . lang . String tablePath = ( com . splicemachine . derby . impl . sql . execute . operations . ExternalTableIT . getExternalResourceDirectory ( ) ) + "avro_colname" ; methodWatcher . executeUpdate ( java . lang . String . format ( ( "create<sp>external<sp>table<sp>avro_colname<sp>(col1<sp...
org . junit . Assert . assertEquals ( actual , expected , actual )
selectTest2 ( ) { com . navercorp . pinpoint . web . vo . Range range = new com . navercorp . pinpoint . web . vo . Range ( ( ( com . navercorp . pinpoint . web . service . stat . AgentWarningStatServiceTest . CURRENT_TIME ) - ( com . navercorp . pinpoint . web . service . stat . AgentWarningStatServiceTest . TIME ) ) ...
org . junit . Assert . assertTrue ( ( ( timelineSegmentList . size ( ) ) == 10 ) )
testGetJobProperties ( ) { java . util . Map obj = getJobProperties ( ) ; "<AssertPlaceHolder>" ; } getJobProperties ( ) { return client . getJobProperties ( envVars . get ( "GO_PIPELINE_NAME" ) . toString ( ) , envVars . get ( "GO_PIPELINE_COUNTER" ) . toString ( ) , envVars . get ( "GO_STAGE_NAME" ) . toString ( ) , ...
org . junit . Assert . assertTrue ( ( 10 < ( obj . size ( ) ) ) )
propertyNotFoundSinceThereAreNoProperties ( ) { final java . lang . String value = uut . getProperty ( com . redhat . rcm . maven . plugin . buildmetadata . maven . MavenPropertyHelperPropertiesTest . PROPERTY_NAME ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . String ) { if ( name == null ) { throw new java...
org . junit . Assert . assertNull ( value )
ringCount0 ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[R0]" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience . cdk . s...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
shouldInjectContext ( ) { final java . util . concurrent . Callable < ? > inner = new java . util . concurrent . Callable < java . lang . Void > ( ) { @ ro . isdc . wro . model . group . Inject private ro . isdc . wro . config . ReadOnlyContext object ; public ro . isdc . wro . model . group . processor . Void call ( )...
org . junit . Assert . assertNotNull ( object )
getSensorType ( ) { final java . lang . String sensor = "mockSensor1" ; final java . lang . String provider = "mockProvider1" ; final java . lang . String sensorType = "temperature" ; when ( mongoOperations . findOne ( any ( org . springframework . data . mongodb . core . query . Query . class ) , eq ( org . sentilo . ...
org . junit . Assert . assertEquals ( sensorType , result )
testLoadMapper ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setInt ( JobContext . NUM_REDUCES , 2 ) ; org . apache . hadoop . mapred . gridmix . CompressionEmulationUtil . setCompressionEmulationEnabled ( conf , true ) ; conf . setBoolean ( MRJo...
org . junit . Assert . assertEquals ( 2 , data . size ( ) )
testDisposeColumnGroupOnGridDispose ( ) { org . eclipse . nebula . widgets . grid . GridColumnGroup group = new org . eclipse . nebula . widgets . grid . GridColumnGroup ( grid , org . eclipse . swt . SWT . NONE ) ; grid . dispose ( ) ; "<AssertPlaceHolder>" ; } isDisposed ( ) { org . eclipse . swt . widgets . Control ...
org . junit . Assert . assertTrue ( group . isDisposed ( ) )
filterNot_A$Function1 ( ) { com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > f = new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > ( ) { public com . m3 . scalaflavor4j . Boolean apply ( java . lang . String v1 ) { return v1 . contains ( "b" ) ; } } ; com ....
org . junit . Assert . assertThat ( actual . toList ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 2 ) ) )
testTransformValueToDateByTalendType ( ) { java . util . Date expectedDate = new java . util . Date ( 1L ) ; org . talend . codegen . enforcer . IndexMapper indexMapper = new org . talend . codegen . enforcer . IndexMapperByIndex ( org . talend . codegen . enforcer . OutgoingSchemaEnforcerTest . talend6Schema ) ; org ....
org . junit . Assert . assertThat ( transformedValue , org . hamcrest . Matchers . equalTo ( ( ( java . lang . Object ) ( expectedDate ) ) ) )
shouldMapTopLevel ( ) { java . util . Map < java . lang . String , java . lang . String > src = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , java . lang . String > dest = new java . util . HashMap ( ) ; src . put ( "A" , "B" ) ; dest . put ( "B" , "A" ) ; com . github . dozermapper . core ...
org . junit . Assert . assertEquals ( 2 , dest . size ( ) )
getSourceFile ( ) { try ( com . oracle . bmc . io . internal . WrappedFileInputStream wrappedStream = new com . oracle . bmc . io . internal . WrappedFileInputStream ( tmpFile ) ) { "<AssertPlaceHolder>" ; } } getSourceFile ( ) { try ( com . oracle . bmc . io . internal . WrappedFileInputStream wrappedStream = new com ...
org . junit . Assert . assertSame ( tmpFile , wrappedStream . getSourceFile ( ) )
testApiKeyWithScheme ( ) { org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type type = org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type . APIKEY ; org . eclipse . microprofile . openapi . models . security . SecurityScheme . In in = org . eclipse . micropr...
org . junit . Assert . assertEquals ( 1 , vh . getEventsSize ( ) )
updateExistingVisit ( ) { petclinic . visits . Visit visit = visitData . create ( ) ; visitScreen . selectVisit ( visit . getId ( ) ) ; petclinic . visits . Visit editedVisited = visitScreen . getVisit ( ) ; java . lang . String modifiedDescription = ( editedVisited . getDescription ( ) ) + "<sp>-<sp>modified" ; edited...
org . junit . Assert . assertEquals ( modifiedDescription , modifiedVisit . getDescription ( ) )
randomDoubleTest ( ) { double randomDouble = cn . hutool . core . util . RandomUtil . randomDouble ( 0 , 1 , 0 , RoundingMode . HALF_UP ) ; "<AssertPlaceHolder>" ; } randomDouble ( double , double , int , java . math . RoundingMode ) { return cn . hutool . core . util . NumberUtil . round ( cn . hutool . core . util . ...
org . junit . Assert . assertTrue ( ( randomDouble <= 1 ) )
testTrue ( ) { final nl . bzk . migratiebrp . bericht . model . sync . impl . VerwerkToevalligeGebeurtenisVerzoekBericht verzoek = new nl . bzk . migratiebrp . bericht . model . sync . impl . VerwerkToevalligeGebeurtenisVerzoekBericht ( ) ; verzoek . setOverlijden ( nl . bzk . migratiebrp . synchronisatie . runtime . s...
org . junit . Assert . assertTrue ( subject . controleer ( persoon , verzoek ) )
resolveKeyToPropertyWithAPropertyWithoutAnObject ( ) { final com . github . javafaker . service . FakeValuesServiceTest . DummyService dummy = mock ( com . github . javafaker . service . FakeValuesServiceTest . DummyService . class ) ; doReturn ( "Yo!" ) . when ( dummy ) . hello ( ) ; final java . lang . String actual ...
org . junit . Assert . assertThat ( actual , is ( "Yo!" ) )
testDec ( ) { java . lang . String orig = "12234" ; org . antlr . runtime . tree . CommonTree tree = com . cloudera . flume . conf . FlumeBuilder . parseLiteral ( orig ) ; java . lang . String out = com . cloudera . flume . conf . FlumeSpecGen . genArg ( tree ) ; "<AssertPlaceHolder>" ; } genArg ( org . antlr . runtime...
org . junit . Assert . assertEquals ( orig , out )
testSetWithIntegerOnBoolean ( ) { preferences . set ( "Developer<sp>Tools" , "Proxy<sp>Auto<sp>Connect" , 0 ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . String ) { for ( com . opera . core . systems . preferences . OperaPreference p : this ) { if ( ( p . getSection ( ) . equalsIgnoreCase ( s...
org . junit . Assert . assertEquals ( false , preferences . get ( "Developer<sp>Tools" , "Proxy<sp>Auto<sp>Connect" ) . getValue ( ) )
shouldStartRoute ( ) { java . lang . String message = "msg" ; producerTemplate . sendBody ( "seda:test" , message ) ; java . lang . String receivedMessage = consumerTemplate . receiveBody ( "seda:test" , java . lang . String . class ) ; "<AssertPlaceHolder>" ; } receiveBody ( org . apache . camel . Endpoint , java . la...
org . junit . Assert . assertEquals ( message , receivedMessage )
testSerialization ( ) { org . jfree . chart . labels . BubbleXYItemLabelGenerator g1 = new org . jfree . chart . labels . BubbleXYItemLabelGenerator ( ) ; org . jfree . chart . labels . BubbleXYItemLabelGenerator g2 = ( ( org . jfree . chart . labels . BubbleXYItemLabelGenerator ) ( org . jfree . chart . TestUtils . se...
org . junit . Assert . assertEquals ( g1 , g2 )
testGetPolicy ( ) { expect ( resourceManager . getOptions ( ) ) . andReturn ( mockOptions ) . times ( 1 ) ; expect ( resourceManager . getPolicy ( com . google . cloud . resourcemanager . ProjectTest . PROJECT_ID ) ) . andReturn ( com . google . cloud . resourcemanager . ProjectTest . POLICY ) ; replay ( resourceManage...
org . junit . Assert . assertEquals ( com . google . cloud . resourcemanager . ProjectTest . POLICY , project . getPolicy ( ) )
testIncrement ( ) { com . b2international . commons . Version version = new com . b2international . commons . Version ( com . google . common . collect . ImmutableList . of ( 1 , 2 , 3 ) ) ; com . b2international . commons . Version incrementedVersion = version . increment ( ) ; com . b2international . commons . Versio...
org . junit . Assert . assertEquals ( expectedIncrementedVersion , incrementedVersion )
getValueReturnsJsonNumber ( ) { testJSON = new org . json . JSONObject ( ) ; testJSON . put ( testKey , testNumber ) ; org . restlet . representation . Representation request = mockedJsonRequest ( testJSON . toString ( ) ) ; classUnderTest = new org . locationtech . geowave . service . rest . field . RequestParametersJ...
org . junit . Assert . assertEquals ( testNumber , classUnderTest . getValue ( testKey ) )
testRadius ( ) { org . jinstagram . realtime . InstagramSubscription fixture = new org . jinstagram . realtime . InstagramSubscription ( ) ; java . lang . String radius = "" ; org . jinstagram . realtime . InstagramSubscription result = fixture . radius ( radius ) ; "<AssertPlaceHolder>" ; } radius ( java . lang . Stri...
org . junit . Assert . assertNotNull ( result )
testNumberTemplate ( ) { freemarker . template . Template template = cfg . getTemplate ( getTemplatePath ( "number.html" ) ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; params . put ( GlobalVariable . PAGE_N...
org . junit . Assert . assertEquals ( expected , value )
testEraseQueryIgnoresQueryInCompositeURI ( ) { java . net . URI original = new java . net . URI ( "failover:(amqp://example.com:5672?amqp.traceFrames=true)" ) ; java . net . URI expected = new java . net . URI ( "failover:(amqp://example.com:5672?amqp.traceFrames=true)" ) ; java . net . URI updated = org . apache . qpi...
org . junit . Assert . assertEquals ( expected , updated )
testWithEmptyAndDataFiles ( ) { org . apache . flume . Context context = new org . apache . flume . Context ( ) ; java . io . File f1 = new java . io . File ( ( ( tmpDir . getAbsolutePath ( ) ) + "/file1" ) ) ; com . google . common . io . Files . write ( "some<sp>data" . getBytes ( ) , f1 ) ; java . io . File f2 = new...
org . junit . Assert . assertNull ( org . apache . flume . source . TestSpoolDirectorySource . channel . take ( ) )
testPushLessSize ( ) { net . objecthunter . exp4j . ArrayStack stack = new net . objecthunter . exp4j . ArrayStack ( 5 ) ; for ( int i = 0 ; i < 5 ; i ++ ) { stack . push ( i ) ; } "<AssertPlaceHolder>" ; } size ( ) { return ( idx ) + 1 ; }
org . junit . Assert . assertEquals ( 5 , stack . size ( ) )
testLogin ( ) { if ( ! ( org . mitre . mpf . wfm . ITWebUI . test_ready ) ) return ; org . mitre . mpf . wfm . ITWebUI . test_ready = false ; java . lang . String testname = "testLogin" ; ( org . mitre . mpf . wfm . ITWebUI . testCtr ) ++ ; org . mitre . mpf . wfm . ITWebUI . log . info ( "Beginning<sp>test<sp>#{}<sp>{...
org . junit . Assert . assertTrue ( org . mitre . mpf . wfm . HomePage . ValidPage ( org . mitre . mpf . wfm . ITWebUI . driver ) )
shouldBeEnabledByTrueProperty ( ) { java . util . Properties configuration = new java . util . Properties ( ) ; configuration . setProperty ( "feature.test" , "True" ) ; org . kaazing . gateway . util . feature . EarlyAccessFeature feature = new org . kaazing . gateway . util . feature . EarlyAccessFeature ( "test" , "...
org . junit . Assert . assertTrue ( feature . isEnabled ( configuration ) )
testDumpNonAsciiMoveMethods ( ) { java . io . StringWriter output = new java . io . StringWriter ( ) ; org . javacc . utils . io . IndentingPrintWriter contentWriter = new org . javacc . utils . io . IndentingPrintWriter ( output ) ; scannerGen . nfaStates . dumpNonAsciiMoveMethods ( contentWriter ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( "" , output . toString ( ) )
shouldNeverBeEmpty ( ) { "<AssertPlaceHolder>" ; } isEmpty ( ) { return values . isEmpty ( ) ; }
org . junit . Assert . assertThat ( list . isEmpty ( ) , org . hamcrest . core . Is . is ( false ) )
selectedEnvironmentShouldBeProjectEnvironment ( ) { org . eclipse . che . ide . api . app . CurrentProject currentProject = mock ( org . eclipse . che . ide . api . app . CurrentProject . class ) ; when ( appContext . getCurrentProject ( ) ) . thenReturn ( currentProject ) ; when ( actionManager . getAction ( org . ecl...
org . junit . Assert . assertThat ( action . selectEnvironment ( ) , org . hamcrest . core . Is . is ( projectEnv1 ) )
testParseWhenAnonymousUser ( ) { final com . atlassian . jira . rest . client . api . domain . BasicUser user = parser . parse ( com . atlassian . jira . rest . client . internal . json . ResourceUtil . getJsonObjectFromResource ( "/json/user/valid-basic-anonymous.json" ) ) ; "<AssertPlaceHolder>" ; } getJsonObjectFrom...
org . junit . Assert . assertNull ( user )
shouldSkipMaxRunningTimeoutValidationByDefault ( ) { final java . util . List < java . lang . String > errors = sut . validateWorkflow ( com . spotify . styx . model . Workflow . create ( "test" , com . spotify . styx . util . WorkflowValidatorTest . CONFIGURATION_WITH_EXCESSIVE_RUNTIME_TIMEOUT ) ) ; "<AssertPlaceHolde...
org . junit . Assert . assertThat ( errors , org . hamcrest . Matchers . empty ( ) )
testCompareToEqualNeg ( ) { byte [ ] aBytes = new byte [ ] { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; byte [ ] bBytes = new byte [ ] { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; int aSign = - 1 ; int bSign = - 1 ; java . math . BigInteger aNumber = new...
org . junit . Assert . assertEquals ( 0 , aNumber . compareTo ( bNumber ) )
testSuccess ( ) { final org . jboss . invocation . Interceptor interceptor = org . jboss . invocation . Interceptors . getChainedInterceptor ( org . jboss . invocation . Interceptors . getInitialInterceptor ( ) , org . jboss . invocation . Interceptors . getInvokingInterceptor ( ) ) ; final org . jboss . invocation . I...
org . junit . Assert . assertEquals ( "test" , interceptor . processInvocation ( context ) )