input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testBuildWithParametersAndDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . enrolment . Enrolment enrolment = new org . lnu . is . domain . enrolment . Enrolment ( ) ; org . lnu . is . domain . benefit . Benefit benefit = new org . lnu . is...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
shouldCreateChannelAddressWithoutTransport ( ) { org . kaazing . k3po . driver . internal . netty . channel . tcp . TcpChannelAddressFactorySpi channelAddressFactorySpi = new org . kaazing . k3po . driver . internal . netty . channel . tcp . TcpChannelAddressFactorySpi ( ) ; java . util . Map < java . lang . String , j...
org . junit . Assert . assertEquals ( new org . kaazing . k3po . driver . internal . netty . channel . ChannelAddress ( java . net . URI . create ( "tcp://127.0.0.1:8000" ) ) , channelAddress )
testQueryNotExist ( ) { java . lang . String domainName = "baidu.com" ; java . lang . String punyDomainName = org . restfulwhois . rdap . common . util . DomainUtil . geneDomainPunyName ( domainName ) ; org . restfulwhois . rdap . redirect . bean . RedirectResponse redirect = redirectDao . query ( org . restfulwhois . ...
org . junit . Assert . assertNull ( redirect )
testGetMetrics ( ) { try ( com . salesforce . dva . argus . sdk . ArgusService argusService = new com . salesforce . dva . argus . sdk . ArgusService ( getMockedClient ( "/MetricServiceTest.json" ) ) ) { com . salesforce . dva . argus . sdk . MetricService metricService = argusService . getMetricService ( ) ; java . ut...
org . junit . Assert . assertEquals ( expected , result )
testEmptyGroupImportGroupFileSameDir ( ) { java . lang . String dir = getRandomDir ( ) ; java . lang . String groupFile = "import<sp>\"group2.stg\"\n" ; writeFile ( dir , "group1.stg" , groupFile ) ; groupFile = "c()<sp>::=<sp>\"g2<sp>c\"\n" ; writeFile ( dir , "group2.stg" , groupFile ) ; org . stringtemplate . v4 . S...
org . junit . Assert . assertEquals ( expected , result )
testGetMeasuresById ( ) { org . apache . griffin . core . measure . entity . Measure measure = createGriffinMeasure ( "view_item_hourly" ) ; given ( measureRepo . findByIdAndDeleted ( 1L , false ) ) . willReturn ( measure ) ; org . apache . griffin . core . measure . entity . Measure m = service . getMeasureById ( 1 ) ...
org . junit . Assert . assertEquals ( m . getName ( ) , measure . getName ( ) )
testRealNotEqual ( ) { executeWithDefaultScope ( "boolVar<sp>=<sp>1.0f<sp>!=<sp>2.0f" ) ; "<AssertPlaceHolder>" ; } getBoolValue ( ) { return context . getVariable ( "boolVar" ) . getValue ( ) ; }
org . junit . Assert . assertEquals ( true , getBoolValue ( ) )
isConverterAvailable_nullInput_false ( ) { "<AssertPlaceHolder>" ; } isConverterAvailable ( java . lang . String ) { org . apache . tika . mime . MediaType type = org . apache . tika . mime . MediaType . parse ( mimetype ) ; if ( type != null ) { return ( org . apache . tika . xmp . convert . TikaToXMP . getConverterMa...
org . junit . Assert . assertFalse ( org . apache . tika . xmp . convert . TikaToXMP . isConverterAvailable ( null ) )
testEmpty ( ) { java . io . InputStream in = new org . zeroturnaround . jf2012 . concurrency . cancel . io . InterruptibleInputStream ( new java . io . ByteArrayInputStream ( new byte [ 0 ] ) ) ; try { int b = in . read ( ) ; "<AssertPlaceHolder>" ; } finally { in . close ( ) ; } } read ( ) { while ( true ) { try { ret...
org . junit . Assert . assertEquals ( ( - 1 ) , b )
testLimit ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; final org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . limit ( 2 , 10 ) . build ( ) ; fin...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
shouldSerializeAllBasicFields ( ) { java . lang . String expectedResult = "<order>\n<sp><price>15.0</price>\n<sp><comments>pack<sp>it<sp>nicely,<sp>please</comments>\n</order>" ; br . com . caelum . vraptor . serialization . xstream . XStreamXMLSerializationTest . Order order = new br . com . caelum . vraptor . seriali...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
shouldRejectIdManglingOnPut ( ) { host . setId ( 222 ) ; host . setClusterId ( null ) ; res = hv . validate ( host , org . openstack . atlas . api . mgmt . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atlas . api . validation . results . ValidatorResult , java . lang . E...
org . junit . Assert . assertFalse ( resultMessage ( res , org . openstack . atlas . api . mgmt . validation . validators . PUT ) , res . passedValidation ( ) )
testSetLength ( ) { org . apache . james . mime4j . util . ByteArrayBuffer buffer = new org . apache . james . mime4j . util . ByteArrayBuffer ( 4 ) ; buffer . setLength ( 2 ) ; "<AssertPlaceHolder>" ; } length ( ) { return bufferLen ( ) ; }
org . junit . Assert . assertEquals ( 2 , buffer . length ( ) )
testSidebar ( ) { java . util . Map < net . sourceforge . pmd . lang . Language , java . util . List < net . sourceforge . pmd . RuleSet > > rulesets = new java . util . HashMap ( ) ; net . sourceforge . pmd . RuleSet ruleSet1 = new net . sourceforge . pmd . RuleSetFactory ( ) . createNewRuleSet ( "test" , "test" , "be...
org . junit . Assert . assertEquals ( expected , yaml )
testGetLongPosition ( ) { final long [ ] initial = new long [ ] { 532 , 632 , 987421 } ; final net . imglib2 . Point p = new net . imglib2 . Point ( initial ) ; "<AssertPlaceHolder>" ; } getLongPosition ( int ) { return source . getLongPosition ( d ) ; }
org . junit . Assert . assertEquals ( p . getLongPosition ( 1 ) , initial [ 1 ] )
createTag ( ) { logger . debug ( "----------------createTag<sp>-----------------" ) ; com . packtpub . techbuzz . entities . Tag tag = new com . packtpub . techbuzz . entities . Tag ( ) ; tag . setLabel ( "Sivalabs" ) ; tag . setValue ( "sivalabs" ) ; tag . setDescription ( "SivaLabs<sp>Blog" ) ; com . packtpub . techb...
org . junit . Assert . assertNotNull ( createdTag )
testUser ( ) { com . google . appengine . api . users . User user = new com . google . appengine . api . users . User ( "someone@example.com" , "gmail.com" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( user )
testAuthenticate_invalidCreds_assertAssertException ( ) { org . nhindirect . common . rest . auth . BasicAuthValidator validator = buildValidator ( ) ; boolean exceptionOccured = false ; try { final java . lang . String rawAuth = buildRawCredential ( "gm2552" , "Password" ) ; validator . authenticate ( rawAuth ) ; } ca...
org . junit . Assert . assertTrue ( exceptionOccured )
instantiation ( ) { final se . unbound . tapestry . tagselect . services . TagSelectModule module = new se . unbound . tapestry . tagselect . services . TagSelectModule ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( module )
testCompany ( ) { com . baidu . unbiz . fluentvalidator . dto . Company company = com . baidu . unbiz . fluentvalidator . dto . CompanyBuilder . buildSimple ( ) ; com . baidu . unbiz . fluentvalidator . Result ret = com . baidu . unbiz . fluentvalidator . FluentValidator . checkAll ( ) . on ( company , new com . baidu ...
org . junit . Assert . assertThat ( ret . isSuccess ( ) , org . hamcrest . core . Is . is ( true ) )
testUpdate_Embedded_NullAddress ( ) { com . jmethods . catatumbo . entities . Customer entity = com . jmethods . catatumbo . entities . Customer . createSampleCustomer2 ( ) ; entity = com . jmethods . catatumbo . EntityManagerTest . em . insert ( entity ) ; entity = com . jmethods . catatumbo . EntityManagerTest . em ....
org . junit . Assert . assertTrue ( entity . equals ( entity2 ) )
testInterfaceGenericInjection ( ) { org . eclipse . e4 . core . internal . tests . contexts . inject . GenericsInjectionTest . Implementation implementation = new org . eclipse . e4 . core . internal . tests . contexts . inject . GenericsInjectionTest . Implementation ( ) ; org . eclipse . e4 . core . contexts . IEclip...
org . junit . Assert . assertEquals ( implementation , target . field )
testCreationFailure ( ) { java . io . File [ ] files = initFiles ( 1 , monitoredDirectory , "file00" ) ; int toFail = 2 ; timesToFail . set ( toFail ) ; observer . checkAndNotify ( ) ; observer . checkAndNotify ( ) ; observer . checkAndNotify ( ) ; observer . checkAndNotify ( ) ; verify ( fileListener , times ( ( ( fil...
org . junit . Assert . assertThat ( failures , org . hamcrest . Matchers . is ( toFail ) )
testGetLineWidth ( ) { System . out . println ( "getLineWidth" ) ; kg . apc . charting . ChartSettings instance = new kg . apc . charting . ChartSettings ( ) ; float expResult = 1.0F ; float result = instance . getLineWidth ( ) ; "<AssertPlaceHolder>" ; } getLineWidth ( ) { return lineWidth ; }
org . junit . Assert . assertEquals ( expResult , result , 0.0 )
fetchNonExisting ( ) { java . lang . Object value = this . cut . getProperty ( com . airhacks . afterburner . configuration . ConfiguratorTest . class , "SHOULD-NOT-EXIST" ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . Class , java . lang . Object ) { java . lang . Object value = this . systemProperties . ge...
org . junit . Assert . assertNull ( value )
testVoerStapUit ( ) { final boolean stapResultaat = stap . voerStapUit ( null , org . mockito . Mockito . mock ( nl . bzk . brp . business . stappen . bevraging . BevragingBerichtContextBasis . class ) , resultaat ) ; "<AssertPlaceHolder>" ; } voerStapUit ( O extends nl . bzk . brp . model . basis . Vergrendelbaar , C ...
org . junit . Assert . assertTrue ( stapResultaat )
testWithNameWhenSameName ( ) { final com . allanbank . mongodb . bson . element . TimestampElement element = new com . allanbank . mongodb . bson . element . TimestampElement ( "foo" , 1010101 ) ; "<AssertPlaceHolder>" ; } withName ( java . lang . String ) { if ( getName ( ) . equals ( name ) ) { return this ; } return...
org . junit . Assert . assertSame ( element , element . withName ( "foo" ) )
processorStateTestPeek ( ) { com . itextpdf . svg . processors . impl . ProcessorState testProcessorState = new com . itextpdf . svg . processors . impl . ProcessorState ( ) ; com . itextpdf . svg . renderers . ISvgNodeRenderer renderer = new com . itextpdf . svg . dummy . renderers . impl . DummySvgNodeRenderer ( "tes...
org . junit . Assert . assertTrue ( ( ( viewed . toString ( ) . equals ( "test" ) ) && ( ! ( testProcessorState . empty ( ) ) ) ) )
testHasDataflowNatureOnProjectThatDoesNotExistDoesNotInteractAndReturnsFalse ( ) { when ( project . isAccessible ( ) ) . thenReturn ( false ) ; boolean hasNature = com . google . cloud . tools . eclipse . dataflow . core . natures . DataflowJavaProjectNature . hasDataflowNature ( project ) ; "<AssertPlaceHolder>" ; ver...
org . junit . Assert . assertFalse ( hasNature )
testUnwrapForObjectType ( ) { "<AssertPlaceHolder>" ; } unwrap ( java . lang . Class ) { if ( clazz == null ) { return null ; } if ( clazz . isPrimitive ( ) ) { return clazz ; } if ( ! ( cz . zcu . kiv . jop . util . PrimitiveUtils . isWrapper ( clazz ) ) ) { return clazz ; } java . lang . String name = clazz . getName...
org . junit . Assert . assertEquals ( java . lang . Object . class , cz . zcu . kiv . jop . util . PrimitiveUtils . unwrap ( java . lang . Object . class ) )
testVoerRegelUitDatumEindeVoorDatumAanleiding ( ) { nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoonBericht . setDeelnameEUVerkiezingen ( new nl . bzk . brp . model . bericht . kern . PersoonDeelnameEUVerkiezingenGroepBe...
org . junit . Assert . assertEquals ( persoonBericht , berichtEntiteits . get ( 0 ) )
testNestedIFWithIndentOnMultipleLines ( ) { org . stringtemplate . v4 . ST t = new org . stringtemplate . v4 . ST ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "begin" + ( newline ) ) + "<sp><if(x)>" ) + ( newline ) ) + "<sp>foo" 0 ) + ( newline ) ) + "<sp>foo" ) + ( newline ) ) + "<sp><endif>" ) + ( newline ) ) + "<sp><...
org . junit . Assert . assertEquals ( expecting , result )
checkEmptyEquivalates ( ) { org . atlasapi . media . entity . Item item = new org . atlasapi . media . entity . Item ( ) ; item . setPublisher ( Publisher . ARQIVA ) ; item . setCanonicalUri ( "target" ) ; java . util . List < org . atlasapi . equiv . results . scores . ScoredCandidates < org . atlasapi . media . entit...
org . junit . Assert . assertTrue ( ( ( equivalenceResult . strongEquivalences ( ) . values ( ) . size ( ) ) == 0 ) )
hasSameHashCodeAsTestClassThatWrapsSameJavaClass ( ) { org . junit . runners . model . TestClass testClass = new org . junit . runners . model . TestClass ( org . junit . runners . model . TestClassTest . DummyClass . class ) ; org . junit . runners . model . TestClass testClassThatWrapsSameJavaClass = new org . junit ...
org . junit . Assert . assertEquals ( testClass . hashCode ( ) , testClassThatWrapsSameJavaClass . hashCode ( ) )
should_get_job_zip_error ( ) { stubDemo ( ) ; com . flow . platform . api . domain . node . Node rootForFlow = createRootFlow ( "flow1" , "yml/flow.yaml" ) ; com . flow . platform . api . domain . job . Job job = jobService . createFromFlowYml ( rootForFlow . getPath ( ) , JobCategory . TAG , null , mockUser ) ; job . ...
org . junit . Assert . assertNotNull ( response )
listStops ( ) { "<AssertPlaceHolder>" ; } basicTripStops ( ) { return java . util . Arrays . asList ( com . conveyal . r5 . otp2 . _shared . StopArrivalsTestData . STOP_1 , com . conveyal . r5 . otp2 . _shared . StopArrivalsTestData . STOP_2 , com . conveyal . r5 . otp2 . _shared . StopArrivalsTestData . STOP_3 , com ....
org . junit . Assert . assertEquals ( com . conveyal . r5 . otp2 . _shared . StopArrivalsTestData . basicTripStops ( ) , subject . listStops ( ) )
shouldHaveSubjectKeyIdentifierForResourceCertificates ( ) { subject . withResources ( net . ripe . ipresource . IpResourceSet . parse ( "10/8" ) ) ; subject . withSubjectKeyIdentifier ( true ) ; net . ripe . rpki . commons . crypto . x509cert . X509ResourceCertificate certificate = subject . build ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertNotNull ( certificate . getSubjectKeyIdentifier ( ) )
testAllowsUnrecognizedPaths ( ) { com . cloudera . labs . envelope . validate . Validations v = com . cloudera . labs . envelope . validate . Validations . builder ( ) . allowUnrecognizedPaths ( ) . build ( ) ; "<AssertPlaceHolder>" ; } allowsUnrecognizedPaths ( ) { return allowUnrecognizedPaths ; }
org . junit . Assert . assertTrue ( v . allowsUnrecognizedPaths ( ) )
testMatchExactlyVlanNull ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "type" , "aaa" ) ; put ( "queue_id" , "12" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionSetQueueQuery ( actions ) ; org . o3proje...
org . junit . Assert . assertThat ( target . matchExactly ( ( ( org . o3project . odenos . core . component . network . flow . basic . FlowAction ) ( action ) ) ) , org . hamcrest . CoreMatchers . is ( true ) )
testMeetsCriteriaWithNullResult ( ) { org . opennms . netmgt . snmp . SnmpValue result = null ; "<AssertPlaceHolder>" ; } meetsCriteria ( org . opennms . netmgt . snmp . SnmpValue , java . lang . String , java . lang . String ) { java . lang . Boolean retVal = null ; retVal = isCriteriaNull ( result , operator , operan...
org . junit . Assert . assertFalse ( monitor . meetsCriteria ( result , null , null ) )
testFilteringTreatmentPermit ( ) { org . onosproject . net . flow . TrafficTreatment treatment = org . onosproject . net . flow . DefaultTrafficTreatment . emptyTreatment ( ) ; org . onosproject . net . pi . runtime . PiAction mappedAction = interpreter . mapTreatment ( treatment , FabricConstants . FABRIC_INGRESS_FILT...
org . junit . Assert . assertEquals ( expectedAction , mappedAction )
testImageInfo ( ) { final java . util . Map < java . lang . String , java . lang . Object > params = java . util . Collections . emptyMap ( ) ; final org . apache . commons . imaging . ImageInfo imageInfo = org . apache . commons . imaging . Imaging . getImageInfo ( imageFile , params ) ; "<AssertPlaceHolder>" ; } getI...
org . junit . Assert . assertNotNull ( imageInfo )
getSubscriptionsForOrganization_Authorized ( ) { java . lang . reflect . Method method = beanClass . getMethod ( "getSubscriptionsForOrganization" ) ; boolean isSubscriptionManagerRoleAllowed = isRoleAllowed ( method , UserRoleType . SUBSCRIPTION_MANAGER ) ; "<AssertPlaceHolder>" ; } isRoleAllowed ( java . lang . refle...
org . junit . Assert . assertTrue ( isSubscriptionManagerRoleAllowed )
initialize_list_java_with_double_brace_initialziation ( ) { @ com . levelup . java . collections . SuppressWarnings ( "serial" ) java . util . ArrayList < java . lang . String > cheeses = new java . util . ArrayList < java . lang . String > ( ) { { add ( "Munster" ) ; add ( "Swiss" ) ; add ( "Sharp<sp>cheddar" ) ; } } ...
org . junit . Assert . assertEquals ( 3 , cheeses . size ( ) )
testGetVersion_fail ( ) { when ( client . performAction ( org . mockito . Mockito . any ( net . sourceforge . jwbf . mediawiki . actions . meta . GetVersion . class ) ) ) . thenThrow ( new java . lang . IllegalStateException ( "fail" ) ) ; try { testee . getVersion ( ) ; org . junit . Assert . fail ( ) ; } catch ( java...
org . junit . Assert . assertEquals ( "fail" , e . getMessage ( ) )
testContentWithInvalidContentTypeToString ( ) { final java . lang . String content = org . apache . hc . core5 . http . io . entity . TestEntityUtils . constructString ( org . apache . hc . core5 . http . io . entity . TestEntityUtils . RUSSIAN_HELLO ) ; final byte [ ] bytes = content . getBytes ( StandardCharsets . UT...
org . junit . Assert . assertEquals ( content , s )
plControleDezelfdePersoonNok ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . util . Collection...
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testSplitEqually ( ) { if ( ! ( device . getPartitionProperties ( ) . contains ( CLDevice . PartitionType . Equally ) ) ) return ; int computeUnits = device . getMaxComputeUnits ( ) ; System . out . println ( ( "computeUnits<sp>=<sp>" + computeUnits ) ) ; int subComputeUnits = computeUnits / 2 ; com . nativelibs4java ....
org . junit . Assert . assertEquals ( subComputeUnits , subDevice . getMaxComputeUnits ( ) )
testDeleteItemThatIsNotPresentDoesNothing ( ) { com . github . davidmoten . rtree . Entry < java . lang . Object , com . github . davidmoten . rtree . geometry . Rectangle > e1 = com . github . davidmoten . rtree . RTreeTest . e ( 1 ) ; com . github . davidmoten . rtree . Entry < java . lang . Object , com . github . d...
org . junit . Assert . assertTrue ( ( tree == ( tree . delete ( e2 ) ) ) )
testProtectionObjectParser2 ( ) { final org . opendaylight . protocol . rsvp . parser . impl . te . DynamicProtectionObjectParser parser = new org . opendaylight . protocol . rsvp . parser . impl . te . DynamicProtectionObjectParser ( ) ; final org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ...
org . junit . Assert . assertArrayEquals ( TEObjectUtil . TE_LSP_PROTECTION_C2 , org . opendaylight . protocol . util . ByteArray . getAllBytes ( output ) )
testParseNoValue ( ) { java . util . Map < java . lang . String , java . lang . Long > data = sut2 . parse ( "p" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { java . lang . String [ ] stringArray = toParse . split ( org . eurekastreams . server . domain . CollectionFormat . DELIMITER ) ; java . util . ...
org . junit . Assert . assertNull ( data )
isSamecontainerReturnsTrueWhenContainerIsActivity ( ) { final org . bonitasoft . studio . model . expression . Expression expr = ExpressionFactory . eINSTANCE . createExpression ( ) ; final org . bonitasoft . studio . model . process . Data refData = ProcessFactory . eINSTANCE . createData ( ) ; refData . setName ( "my...
org . junit . Assert . assertTrue ( org . bonitasoft . studio . common . emf . tools . ModelHelper . isSameContainer ( refData , data ) )
testCheckUser1 ( ) { System . out . println ( "checkUser" ) ; java . lang . String user = "a" ; java . lang . String pass = "a" ; testPackage . mockTestUserToDB instance = new testPackage . mockTestUserToDB ( ) ; boolean expResult = true ; boolean result = instance . checkUser1 ( user , pass ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( expResult , result )
testGetElementByName_04 ( ) { org . eclipse . xtext . resource . IEObjectDescription objectElement = getConstructorScope ( ) . getSingleElement ( org . eclipse . xtext . naming . QualifiedName . create ( java . util . AbstractList . class . getName ( ) ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertNotNull ( objectElement )
unknownObjectType ( ) { java . lang . String json = "{\"objectValue\":<sp>{\n" + ( ( "<sp>\"objectType\":<sp>\"FUTURE_OBJECT_TYPE\"," + "<sp>\"value\":<sp>1\n" ) + "<sp>}}" ) ; com . smartsheet . api . internal . json . ObjectValue objectValue = getObjectValue ( json ) ; "<AssertPlaceHolder>" ; } getObjectValue ( java ...
org . junit . Assert . assertEquals ( null , objectValue )
testIsSessionExpiredWhenUISessionInactive ( ) { org . eclipse . rap . rwt . internal . service . UISessionImpl uiSession = ( ( org . eclipse . rap . rwt . internal . service . UISessionImpl ) ( org . eclipse . rap . rwt . internal . service . ContextProvider . getUISession ( ) ) ) ; uiSession . shutdown ( ) ; boolean s...
org . junit . Assert . assertTrue ( sessionExpired )
gaussianZScoreTransformWithDetectionIntervalTest4 ( ) { metricData . put ( 0L , 10.0 ) ; metricData . put ( 1000L , ( - 1.13 ) ) ; metricData . put ( 2000L , 0.0 ) ; metricData . put ( 3000L , 0.9 ) ; metricData . put ( 4000L , ( - 0.96 ) ) ; metricData . put ( 5000L , ( - 0.52 ) ) ; metricData . put ( 6000L , 0.24 ) ;...
org . junit . Assert . assertEquals ( expected . get ( timestamp ) , resultDatapoints . get ( timestamp ) , 0.01 )
setMaxComponentSizeWithZeroArgument ( ) { instance . setMaxComponentSize ( 0 ) ; "<AssertPlaceHolder>" ; } getMaxComponentSize ( ) { return maxComponentSize ; }
org . junit . Assert . assertEquals ( Integer . MAX_VALUE , instance . getMaxComponentSize ( ) )
testRecipientDisabledFor2ResourcesPresence ( ) { java . lang . String recipient = "recipient-1@localhost" ; tigase . xmpp . JID recp1 = tigase . xmpp . JID . jidInstanceNS ( ( recipient + "/res1" ) ) ; tigase . xmpp . JID recp2 = tigase . xmpp . JID . jidInstanceNS ( ( recipient + "/res2" ) ) ; tigase . xmpp . JID conn...
org . junit . Assert . assertArrayEquals ( expected , processed )
conversionToDataType ( ) { final org . drools . workbench . models . guided . dtable . shared . model . DTCellValue52 dcv = new org . drools . workbench . models . guided . dtable . shared . model . DTCellValue52 ( value ) ; dcv . setOtherwise ( isOtherwise ) ; cellUtilities . convertDTCellValueType ( DataType . DataTy...
org . junit . Assert . assertEquals ( expected , dcv . getDateValue ( ) )
initiallyEmpty ( ) { com . vaadin . v7 . ui . TextField tf = new com . vaadin . v7 . ui . TextField ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( tf . isEmpty ( ) )
should_send_email_when_probation_period_expires_in_1_month ( ) { com . autentia . tnt . businessobject . User user = com . autentia . tnt . test . utils . SpringUtilsForTesting . createUser ( "probation-1m" ) ; user . setEndTestPeriodDate ( java . util . Date . from ( java . time . LocalDate . now ( ) . plusMonths ( 1 ...
org . junit . Assert . assertThat ( userCount , is ( 1 ) )
testForJs ( ) { org . unidal . webres . resource . profile . entity . Profile profile = org . unidal . webres . resource . profile . Profiles . forXml ( ) . parse ( getClass ( ) . getResourceAsStream ( "profile.xml" ) , "utf-8" ) ; org . unidal . webres . resource . model . entity . Root expectedModel = org . unidal . ...
org . junit . Assert . assertEquals ( expectedModel . toString ( ) , model . toString ( ) )
testSerializeDate ( ) { java . util . Calendar d = java . util . Calendar . getInstance ( ) ; d . set ( Calendar . DAY_OF_MONTH , 2 ) ; d . set ( Calendar . HOUR , 5 ) ; d . set ( Calendar . HOUR_OF_DAY , 5 ) ; d . set ( Calendar . MINUTE , 59 ) ; d . set ( Calendar . SECOND , 13 ) ; d . set ( Calendar . MILLISECOND , ...
org . junit . Assert . assertEquals ( serializedDate , org . opencastproject . matterhorn . search . impl . IndexUtils . serializeDate ( date ) )
testScanWithNonMatchingFilter ( ) { com . codeaffine . osgi . testuite . internal . ClassPathScannerTest . addTestResource ( bundle , ( "bin/" + ( com . codeaffine . osgi . testuite . internal . ClassPathScannerTest . Foo . class . getName ( ) ) ) , com . codeaffine . osgi . testuite . internal . ClassPathScannerTest ....
org . junit . Assert . assertArrayEquals ( new java . lang . Class [ 0 ] , classes )
testSave ( ) { nl . bzk . brp . model . operationeel . ber . PersistentBericht bericht = new nl . bzk . brp . model . operationeel . ber . PersistentBericht ( ) ; bericht . setRichting ( Richting . INGAAND ) ; bericht . setData ( "test" ) ; repository . save ( bericht ) ; "<AssertPlaceHolder>" ; } getId ( ) { return th...
org . junit . Assert . assertNotNull ( bericht . getId ( ) )
testHadamard ( ) { int [ ] coeffs = new int [ ] { 61 , - 11 , - 13 , - 14 , 9 , - 4 , - 2 , 2 , - 12 , 6 , 6 , 4 , 8 , 1 , - 2 , 2 } ; int [ ] expected = new int [ ] { 41 , 75 , 79 , 69 , 15 , 89 , 97 , 95 , 23 , 97 , 85 , 83 , 13 , 47 , 23 , 45 } ; org . jcodec . codecs . h264 . decode . CoeffTransformer . invDC4x4 ( ...
org . junit . Assert . assertArrayEquals ( expected , coeffs )
testListSnapshotsString ( ) { try { com . fit2cloud . aliyun . ecs . model . response . ListSnapshotsResponse response = client . listSnapshots ( "cn-beijing" ) ; System . out . println ( ( "testListSnapshotsString<sp>::<sp>" + response ) ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStac...
org . junit . Assert . assertTrue ( true )
testIsConditionHeaderUniqueWhenHeaderIsValid ( ) { final org . drools . workbench . models . guided . dtable . shared . model . ConditionCol52 conditionCol1 = fakeConditionCol52 ( "header1" ) ; final org . drools . workbench . models . guided . dtable . shared . model . ConditionCol52 conditionCol2 = fakeConditionCol52...
org . junit . Assert . assertTrue ( validator . isConditionHeaderUnique ( conditionCol2 ) )
testIsClosed ( ) { com . j256 . ormlite . support . DatabaseConnection conn = createMock ( com . j256 . ormlite . support . DatabaseConnection . class ) ; boolean closed = true ; expect ( conn . isClosed ( ) ) . andReturn ( closed ) ; conn . close ( ) ; com . j256 . ormlite . support . DatabaseConnectionProxy proxy = n...
org . junit . Assert . assertEquals ( closed , proxy . isClosed ( ) )
testMultipleOutputsMergeCnn ( ) { int inH = 7 ; int inW = 7 ; org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; org . deeplearning4j . nn . conf . ComputationGraphConfiguration conf = new org . deeplearning4j . nn . conf . NeuralNetConfiguration . Builder ( ) . seed ( 12345 ) . optimizationAlgo...
org . junit . Assert . assertTrue ( msg , gradOK )
testConfLinkMergeSlashWithMountPoint ( ) { org . apache . hadoop . fs . viewfs . TestViewFileSystemLinkMergeSlash . TEST_DIR . mkdirs ( ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; java . lang . String clusterName = "ClusterX" ; java . lang . String moun...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( expectedErrorMsg ) )
testImportNotString ( ) { java . lang . String templates = "import<sp>Super.stg\n" + "foo()<sp>::=<sp><<>>\n" ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . STErrorListener errors = new org . stringtemplate . v4 . misc . ErrorBuffer ( ) ; org . stringtemplate . v4 . STGroup group = new org ....
org . junit . Assert . assertEquals ( expected , result )
test_doPut ( ) { suppress ( method ( com . webpagebytes . cms . WPBPublicContentServlet . class , "handleRequest" ) ) ; try { publicServlet . doPut ( requestMock , responseMock ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } doPut ( com . webpagebytes . cms . HttpServletRequest , com . webpageby...
org . junit . Assert . assertTrue ( false )
testGetContextBuilderforDelete ( ) { com . sap . core . odata . processor . api . jpa . jpql . JPQLContext . JPQLContextBuilder contextBuilder = new com . sap . core . odata . processor . core . jpa . factory . ODataJPAFactoryImpl ( ) . getJPQLBuilderFactory ( ) . getContextBuilder ( JPQLContextType . DELETE ) ; "<Asse...
org . junit . Assert . assertNull ( contextBuilder )
injectionByName ( ) { "<AssertPlaceHolder>" ; org . apache . openejb . cdi . StatefulConversationScopedTOMEE1138Test . doTest ( conversationByName ) ; }
org . junit . Assert . assertNotNull ( conversationByName )
testGetTableRowCountException ( ) { boolean exceptionThrown = false ; try { wd . open ( org . finra . jtaf . ewd . widget . element . html . TableTest . url ) ; org . finra . jtaf . ewd . widget . ITable table = new org . finra . jtaf . ewd . widget . element . html . Table ( badTableLocator ) ; table . getTableRowCoun...
org . junit . Assert . assertTrue ( exceptionThrown )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDSNoFilters . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . sec...
org . junit . Assert . assertEquals ( "SampleLdapIDSRealm" , com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDSNoFilters . servlet . getRealm ( ) )
testPeToER ( ) { java . util . List < org . biopax . paxtools . pattern . Match > list = org . biopax . paxtools . pattern . Searcher . search ( model . getByID ( "http://pid.nci.nih.gov/biopaxpid_17220" ) , new org . biopax . paxtools . pattern . Pattern ( org . biopax . paxtools . pattern . constraint . PhysicalEntit...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 1 ) )
testDoubleValueNegMaxValue ( ) { byte [ ] a = new byte [ ] { 0 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 8 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1...
org . junit . Assert . assertTrue ( ( aNumber == ( - ( Double . MAX_VALUE ) ) ) )
testBuildReplaceResult ( ) { org . apache . http . client . methods . HttpPost post = org . imsglobal . pox . IMSPOXRequest . buildReplaceResult ( "http://example.com" , "key" , "secret" , "sourcedid" , "0.95" , "A" , false ) ; java . lang . String header = post . getHeaders ( "Authorization" ) [ 0 ] . getValue ( ) ; j...
org . junit . Assert . assertNull ( pox . errorMessage )
omitsTypeHintWhenWritingSimpleTypes ( ) { org . bson . Document target = new org . bson . Document ( ) ; converter . write ( new org . bson . Document ( "value" , "FitzChivalry" ) , target ) ; "<AssertPlaceHolder>" . doesNotContainKeys ( "_class" ) ; }
org . junit . Assert . assertThat ( target )
shouldPickWindowsIfPlatformChoiceIsAny ( ) { org . openqa . selenium . Capabilities any = org . openqa . selenium . remote . server . CapabilitiesComparatorTest . capabilities ( BrowserType . IE , "" , Platform . ANY , true ) ; org . openqa . selenium . Capabilities windows = org . openqa . selenium . remote . server ....
org . junit . Assert . assertThat ( org . openqa . selenium . remote . server . CapabilitiesComparator . getBestMatch ( any , com . google . common . collect . Lists . newArrayList ( windows ) ) , org . hamcrest . Matchers . equalTo ( windows ) )
testCheckpw_failure ( ) { System . out . print ( "BCrypt.checkpw<sp>w/<sp>bad<sp>passwords:<sp>" ) ; for ( int i = 0 ; i < ( test_vectors . length ) ; i ++ ) { int broken_index = ( i + 4 ) % ( test_vectors . length ) ; java . lang . String plain = test_vectors [ i ] [ 0 ] ; java . lang . String expected = test_vectors ...
org . junit . Assert . assertFalse ( com . blade . kit . BCrypt . checkpw ( plain , expected ) )
testFindTypeByName_int_twice ( ) { java . lang . String typeName = "int" ; org . eclipse . xtext . common . types . JvmType firstType = getTypeProvider ( ) . findTypeByName ( typeName ) ; org . eclipse . xtext . common . types . JvmType secondType = getTypeProvider ( ) . findTypeByName ( typeName ) ; "<AssertPlaceHolde...
org . junit . Assert . assertSame ( firstType , secondType )
testConfigureSpout ( com . boozallen . cognition . ingest . storm . topology . TopologyBuilder , org . apache . commons . configuration . Configuration , org . apache . commons . configuration . Configuration , com . boozallen . cognition . ingest . storm . topology . StormParallelismConfig , com . boozallen . cognitio...
org . junit . Assert . assertThat ( topology . configureSpout ( builder , spout ) , org . hamcrest . core . Is . is ( spoutType ) )
getIdentifier_nullId ( ) { org . oscm . app . domain . ServiceInstance si = new org . oscm . app . domain . ServiceInstance ( ) ; si . setTkey ( 1L ) ; si . setInstanceId ( null ) ; "<AssertPlaceHolder>" ; } getIdentifier ( ) { return identifier ; }
org . junit . Assert . assertEquals ( "1" , si . getIdentifier ( ) )
testMin ( ) { "<AssertPlaceHolder>" ; } min ( ) { if ( ( values . size ( ) ) == 0 ) { return 0.0 ; } return values . get ( 0 ) ; }
org . junit . Assert . assertEquals ( 1.0 , m . min ( ) , 0.0 )
testOutputPrefix_Default ( ) { org . sejda . model . parameter . AddBackPagesParameters parameters = defaultCommandLine ( ) . invokeSejdaConsole ( ) ; "<AssertPlaceHolder>" ; } getOutputPrefix ( ) { return outputPrefix ; }
org . junit . Assert . assertEquals ( "" , parameters . getOutputPrefix ( ) )
testEquals ( ) { org . jfree . chart . plot . CombinedRangeCategoryPlot plot1 = createPlot ( ) ; org . jfree . chart . plot . CombinedRangeCategoryPlot plot2 = createPlot ( ) ; "<AssertPlaceHolder>" ; } createPlot ( ) { org . jfree . data . xy . XYDataset data1 = createDataset1 ( ) ; org . jfree . chart . renderer . xy...
org . junit . Assert . assertEquals ( plot1 , plot2 )
testUnwindException2 ( ) { org . apache . cayenne . CayenneRuntimeException e = new org . apache . cayenne . CayenneRuntimeException ( ) ; "<AssertPlaceHolder>" ; } unwindException ( java . lang . Throwable ) { if ( th instanceof org . xml . sax . SAXException ) { org . xml . sax . SAXException sax = ( ( org . xml . sa...
org . junit . Assert . assertSame ( e , org . apache . cayenne . util . Util . unwindException ( e ) )
getPageHeaderHtml ( ) { when ( pageRenderer . getHeaderHtml ( de . blizzy . documentr . web . FunctionsTest . PROJECT , de . blizzy . documentr . web . FunctionsTest . BRANCH , de . blizzy . documentr . web . FunctionsTest . PAGE , authentication , Locale . US , de . blizzy . documentr . web . FunctionsTest . CONTEXT )...
org . junit . Assert . assertEquals ( "headerHtmlWithMacros" , de . blizzy . documentr . web . Functions . getPageHeaderHtml ( de . blizzy . documentr . web . FunctionsTest . PROJECT , de . blizzy . documentr . web . FunctionsTest . BRANCH , de . blizzy . documentr . web . FunctionsTest . PAGE ) )
testGetStyleForMetacardIntegerAttribute ( ) { java . lang . Integer testInteger = java . lang . Integer . valueOf ( "2" ) ; ddf . catalog . data . Metacard metacard = new org . codice . ddf . spatial . kml . transformer . MockMetacard ( AttributeFormat . INTEGER . toString ( ) , testInteger ) ; org . codice . ddf . spa...
org . junit . Assert . assertThat ( mapper . getStyleForMetacard ( metacard ) , org . hamcrest . Matchers . is ( org . codice . ddf . spatial . kml . transformer . TestKmlStyleMap . DEFAULT_STYLE_URL ) )
testToArray ( ) { T t1 = org . springframework . data . redis . support . collections . AbstractRedisZSetTest . getT ( ) ; T t2 = org . springframework . data . redis . support . collections . AbstractRedisZSetTest . getT ( ) ; T t3 = org . springframework . data . redis . support . collections . AbstractRedisZSetTest ...
org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { t1 , t2 , t3 , t4 } , array )
testAddSongNoEvent ( ) { when ( playlistProperties . getLoad ( ) ) . thenReturn ( realPlaylistProperties . getLoad ( ) ) ; when ( serverStatus . getPlaylistVersion ( ) ) . thenReturn ( ( - 1 ) ) ; final org . bff . javampd . playlist . PlaylistChangeEvent [ ] changeEvent = new org . bff . javampd . playlist . PlaylistC...
org . junit . Assert . assertNull ( changeEvent [ 0 ] )
testSerialization ( ) { org . jfree . chart . needle . PinNeedle n1 = new org . jfree . chart . needle . PinNeedle ( ) ; org . jfree . chart . needle . PinNeedle n2 = ( ( org . jfree . chart . needle . PinNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } equals ( java . ...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
testConverterMap ( ) { org . spf4j . jmx . JMXBeanMapping mxBeanMapping2 = conv . get ( new com . google . common . reflect . TypeToken < java . util . Map < java . lang . String , org . spf4j . tsdb2 . avro . ColumnDef > > ( ) { } . getType ( ) ) ; "<AssertPlaceHolder>" ; java . lang . Object ov = mxBeanMapping2 . toO...
org . junit . Assert . assertNotNull ( mxBeanMapping2 )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . operations . SectionOperations so = new org . openhealthtools . mdht . uml . cda . operations . SectionOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( so )
deleteShouldRemoveIndexProperties ( ) { array . put ( 0 , array , "a" ) ; array . delete ( 0 ) ; "<AssertPlaceHolder>" ; } has ( java . lang . String , boolean ) { org . mozilla . javascript . Map < java . lang . String , java . lang . Object > ht = ( isStatic ) ? staticMembers : members ; java . lang . Object obj = ht...
org . junit . Assert . assertThat ( array . has ( 0 , array ) , org . hamcrest . core . Is . is ( false ) )
testRMDTMasterKeyStateOnRollingMasterKey ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( this . conf ) ; conf . set ( "hadoop.security.authentication" , "kerberos" ) ; org . apache . hadoop . security . UserGroupInformation . setLoginUser ( null ) ; org . apa...
org . junit . Assert . assertTrue ( foundIt )