input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testConcurrency ( ) { final org . statefulj . fsm . Foo stateful = new org . statefulj . fsm . Foo ( ) ; final java . lang . String eventA = "eventA" ; final java . lang . String eventB = "eventB" ; final org . statefulj . fsm . FSM < org . statefulj . fsm . Foo > fsm = new org . statefulj . fsm . FSM < org . statefulj... | org . junit . Assert . assertEquals ( stateEnd , current ) |
testToStringNoUser ( ) { org . eurekastreams . commons . server . UserActionRequest sut = new org . eurekastreams . commons . server . UserActionRequest ( org . eurekastreams . commons . server . UserActionRequestTest . ACTION_KEY , null , params ) ; "<AssertPlaceHolder>" ; } toString ( ) { return name ; } | org . junit . Assert . assertNotNull ( sut . toString ( ) ) |
testGetProviderType ( ) { presenter . setup ( providerType , mock ( org . guvnor . ala . ui . model . ProviderTypeStatus . class ) ) ; "<AssertPlaceHolder>" ; } getProviderType ( ) { return java . util . Optional . of ( org . guvnor . ala . wildfly . model . WildflyProviderType . instance ( ) ) ; } | org . junit . Assert . assertEquals ( providerType , presenter . getProviderType ( ) ) |
getByType ( ) { for ( org . bukkit . Instrument instrument : org . bukkit . Instrument . values ( ) ) { "<AssertPlaceHolder>" ; } } getByType ( byte ) { return org . bukkit . Instrument . BY_DATA . get ( type ) ; } | org . junit . Assert . assertThat ( org . bukkit . Instrument . getByType ( instrument . getType ( ) ) , org . hamcrest . CoreMatchers . is ( instrument ) ) |
testSerialization ( ) { com . google . cloud . bigtable . hbase . filter . BigtableFilter original = new com . google . cloud . bigtable . hbase . filter . BigtableFilter ( Filters . FILTERS . pass ( ) ) ; org . apache . hadoop . hbase . protobuf . generated . FilterProtos . Filter proto = org . apache . hadoop . hbase... | org . junit . Assert . assertEquals ( original , org . apache . hadoop . hbase . protobuf . ProtobufUtil . toFilter ( proto ) ) |
testImmutableNullableListBuilder ( ) { final org . apache . calcite . util . ImmutableNullableList . Builder < java . lang . String > builder = org . apache . calcite . util . ImmutableNullableList . builder ( ) ; builder . add ( "a" ) . add ( ( ( java . lang . String ) ( null ) ) ) . add ( "c" ) ; final java . util . ... | org . junit . Assert . assertThat ( arrayList . equals ( list ) , org . hamcrest . CoreMatchers . is ( true ) ) |
getPersonAttributeTypeByName_shouldReturnPersonAttributeTypeWhenNameMatchesGivenTypeName ( ) { org . openmrs . PersonAttributeType attributeType = org . openmrs . api . context . Context . getPersonService ( ) . getPersonAttributeTypeByName ( "Birthplace" ) ; "<AssertPlaceHolder>" ; } getPersonAttributeTypeByName ( jav... | org . junit . Assert . assertNotNull ( attributeType ) |
useDeprecatedInterInstanceProtocolIfDefined ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( SchemaRegistryConfig . SCHEMAREGISTRY_INTER_INSTANCE_PROTOCOL_CONFIG , "https" ) ; props . setProperty ( SchemaRegistryConfig . INTER_INSTANCE_PROTOCOL_CONFIG , "foo" ) ; io . conf... | org . junit . Assert . assertEquals ( "https" , config . interInstanceProtocol ( ) ) |
testModifyTicketUsesLessThanZero ( ) { org . irods . jargon . ticket . packinstr . TicketAdminInp pi = org . irods . jargon . ticket . packinstr . TicketAdminInp . instanceForModifyNumberOfUses ( "" , new java . lang . Integer ( ( - 1 ) ) ) ; "<AssertPlaceHolder>" ; } instanceForModifyNumberOfUses ( java . lang . Strin... | org . junit . Assert . assertNotNull ( pi ) |
testKnownHostsPreferredAlgorithmsRsaAndDssHosts ( ) { com . trilead . ssh2 . KnownHosts testCase = new com . trilead . ssh2 . KnownHosts ( ) ; java . security . KeyPairGenerator dsaGenerator = java . security . KeyPairGenerator . getInstance ( "DSA" ) ; testCase . addHostkey ( new java . lang . String [ ] { "localhost"... | org . junit . Assert . assertNull ( testCase . getPreferredServerHostkeyAlgorithmOrder ( "localhost" ) ) |
testValidateValidAmount ( ) { form . setCharge ( "1.1" ) ; form . setChargeType ( constructChargeType ( org . mifos . accounts . struts . actionforms . ApplyChargeActionFormTest . IS_PENALTY_TYPE , org . mifos . accounts . struts . actionforms . ApplyChargeActionFormTest . FEE_ID , org . mifos . accounts . struts . act... | org . junit . Assert . assertEquals ( 0 , errors . size ( ) ) |
testTaskErr ( ) { org . apache . hadoop . hbase . master . TestSplitLogManager . LOG . info ( "TestTaskErr<sp>-<sp>cleanup<sp>task<sp>node<sp>once<sp>in<sp>ERR<sp>state" ) ; conf . setInt ( "hbase.splitlog.max.resubmit" , 0 ) ; slm = new org . apache . hadoop . hbase . master . SplitLogManager ( zkw , conf , org . apac... | org . junit . Assert . assertTrue ( ( ( org . apache . hadoop . hbase . zookeeper . ZKUtil . checkExists ( zkw , tasknode ) ) == ( - 1 ) ) ) |
getMaxCopyAttemptsDefaultIsThree ( ) { com . hotels . bdp . circustrain . s3s3copier . S3S3CopierOptions options = new com . hotels . bdp . circustrain . s3s3copier . S3S3CopierOptions ( copierOptions ) ; "<AssertPlaceHolder>" ; } getMaxCopyAttempts ( ) { java . lang . Integer maxCopyAttempts = org . apache . commons .... | org . junit . Assert . assertThat ( options . getMaxCopyAttempts ( ) , org . hamcrest . CoreMatchers . is ( 3 ) ) |
testExtraNdkFlagsLiterally ( ) { org . junit . Assume . assumeTrue ( ( ( com . facebook . buck . util . environment . Platform . detect ( ) ) != ( com . facebook . buck . util . environment . Platform . WINDOWS ) ) ) ; com . facebook . buck . io . filesystem . ProjectFilesystem filesystem = com . facebook . buck . io .... | org . junit . Assert . assertEquals ( expected , actual ) |
testTableSourceEstimatedSize_WithDefaultProject ( ) { fakeDatasetService . createDataset ( "project-id" , "dataset" , "" , "" , null ) ; com . google . api . services . bigquery . model . TableReference tableRef = org . apache . beam . sdk . io . gcp . bigquery . BigQueryHelpers . parseTableSpec ( "project-id:dataset.t... | org . junit . Assert . assertEquals ( 100 , tableSource . getEstimatedSizeBytes ( options ) ) |
testRewriteManagedPomUnmappedDependencies ( ) { java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( "internal-managed-snapshot-dependency" ) ; org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = createUnmappedConfiguration ( re... | org . junit . Assert . assertTrue ( true ) |
testPathGetJSON ( ) { com . example . resource . TIMyResourceJTFTest . LOGGER . debug ( ">>Test<sp>Path<sp>Get" ) ; final javax . ws . rs . client . WebTarget pathTarget = target ( ( ( com . example . resource . TIMyResourceJTFTest . BASEURI ) + "/1" ) ) ; final javax . ws . rs . client . Invocation . Builder invocatio... | org . junit . Assert . assertNotNull ( result . getBookId ( ) ) |
returnsAGlobWhenAskedForPathOrGlob ( ) { com . facebook . buck . io . filesystem . GlobPatternMatcher matcher = com . facebook . buck . io . filesystem . GlobPatternMatcher . of ( "foo/*" ) ; "<AssertPlaceHolder>" ; } getPathOrGlob ( ) { return getGlob ( ) ; } | org . junit . Assert . assertEquals ( matcher . getPathOrGlob ( ) , "foo/*" ) |
createQueue ( ) { final javax . jms . Session session = org . switchyard . component . test . mixins . activemq . ActiveMQMixInTest . activeMQMixIn . getSession ( ) ; javax . jms . Queue queue = session . createQueue ( "foo" ) ; javax . jms . MessageProducer producer = session . createProducer ( queue ) ; producer . se... | org . junit . Assert . assertEquals ( "bar" , msg . getText ( ) ) |
testGetSize ( ) { org . dcache . nfs . vfs . Stat stat = new org . dcache . nfs . vfs . Stat ( ) ; stat . setSize ( 1 ) ; "<AssertPlaceHolder>" ; } getSize ( ) { return _cache . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , stat . getSize ( ) ) |
givenAddSubViewHasBeenCalled_thenReturnEmptyViewVisibility ( ) { android . view . ViewGroup parentViewGroup = new android . widget . LinearLayout ( context ) ; parentViewGroup . addView ( adapterView ) ; emptyViewAttributes . addSubView ( adapterView , emptyView , context ) ; "<AssertPlaceHolder>" ; } createVisibility ... | org . junit . Assert . assertNotNull ( emptyViewAttributes . createVisibility ( adapterView , emptyView ) ) |
getSetContainerId ( ) { final org . bonitasoft . engine . data . instance . model . archive . impl . SAXMLObjectDataInstanceImpl saxmlObjectDataInstanceImpl = new org . bonitasoft . engine . data . instance . model . archive . impl . SAXMLObjectDataInstanceImpl ( ) ; saxmlObjectDataInstanceImpl . setContainerId ( 14 ) ... | org . junit . Assert . assertEquals ( 14 , saxmlObjectDataInstanceImpl . getContainerId ( ) ) |
testGetStaticLabel ( ) { System . out . println ( "getStaticLabel" ) ; kg . apc . jmeter . timers . VariableThroughputTimerGui instance = new kg . apc . jmeter . timers . VariableThroughputTimerGui ( ) ; java . lang . String result = instance . getStaticLabel ( ) ; "<AssertPlaceHolder>" ; } getStaticLabel ( ) { return ... | org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) ) |
hostedVirtLimitWithHostLimitedFalseCreatesBonusPools ( ) { when ( configMock . getBoolean ( ConfigProperties . STANDALONE ) ) . thenReturn ( false ) ; org . candlepin . model . Pool p = createVirtLimitPool ( "virtLimitProduct" , 10 , 10 ) ; when ( poolManagerMock . isManaged ( eq ( p ) ) ) . thenReturn ( true ) ; p . g... | org . junit . Assert . assertEquals ( 2 , pools . size ( ) ) |
testGetCreatedTime ( ) { System . out . println ( "getCreatedTime" ) ; java . sql . Timestamp result = edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getCreatedTime ( ) ; "<AssertPlaceHolder>" ; } getCreatedTime ( ) { return this . createdTime ; } | org . junit . Assert . assertEquals ( edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getCreatedTime ( ) , result ) |
testGetRoot ( ) { "<AssertPlaceHolder>" ; } getRoot ( ) { return root ; } | org . junit . Assert . assertEquals ( root , model . getRoot ( ) ) |
syntaxErrorMessage ( ) { try { final java . lang . String malformedGeometry = "WITHIN(ATTR1,<sp>POLYGON((1<sp>2,<sp>10<sp>15),<sp>(10<sp>15,<sp>1<sp>2)))" ; org . geotools . filter . text . commons . CompilerUtil . parseFilter ( this . language , malformedGeometry ) ; org . junit . Assert . fail ( ) ; } catch ( org . g... | org . junit . Assert . assertNotNull ( msg ) |
testSerialization ( ) { com . orsoncharts . util . Fit2D f1 = new com . orsoncharts . util . Fit2D ( com . orsoncharts . TitleAnchor . BOTTOM_CENTER , Scale2D . SCALE_BOTH ) ; com . orsoncharts . util . Fit2D f2 = ( ( com . orsoncharts . util . Fit2D ) ( com . orsoncharts . TestUtils . serialized ( f1 ) ) ) ; "<AssertP... | org . junit . Assert . assertEquals ( f1 , f2 ) |
backwardsCompatible_withPrivateDns_withPublicIp ( ) { boolean usePrivateDnsName = true ; boolean connectUsingPublicIp = true ; boolean associatePublicIp = false ; "<AssertPlaceHolder>" ; } backwardsCompatible ( boolean , boolean , boolean ) { if ( usePrivateDnsName && ( ! connectUsingPublicIp ) ) { return hudson . plug... | org . junit . Assert . assertThat ( hudson . plugins . ec2 . ConnectionStrategy . backwardsCompatible ( usePrivateDnsName , connectUsingPublicIp , associatePublicIp ) , org . hamcrest . CoreMatchers . equalTo ( ConnectionStrategy . PUBLIC_IP ) ) |
divide32 ( ) { junit . tutorial . Calculator calc = new junit . tutorial . Calculator ( ) ; float expected = 1.5F ; float actual = calc . divide ( 3 , 2 ) ; "<AssertPlaceHolder>" ; } divide ( int , int ) { if ( y == 0 ) throw new java . lang . IllegalArgumentException ( "divide<sp>by<sp>zero." ) ; return ( ( float ) ( ... | org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) ) |
testGetExtractedDirectoryName_1 ( ) { java . lang . String archiveFile = "" ; java . lang . String result = com . impetus . ankush . common . utils . FileNameUtils . getExtractedDirectoryName ( archiveFile ) ; "<AssertPlaceHolder>" ; } getExtractedDirectoryName ( java . lang . String ) { java . lang . String path = nul... | org . junit . Assert . assertEquals ( null , result ) |
getStreamWithError ( ) { org . apache . jackrabbit . oak . api . Blob blob = new org . apache . jackrabbit . oak . plugins . value . BinaryBasedBlob ( new org . apache . jackrabbit . oak . plugins . value . BinaryBasedBlobTest . FailingBinary ( ) ) ; "<AssertPlaceHolder>" ; java . io . InputStream ins = blob . getNewSt... | org . junit . Assert . assertEquals ( ( - 1 ) , blob . length ( ) ) |
testDispose ( ) { list . add ( "test" ) ; list . dispose ( ) ; "<AssertPlaceHolder>" ; } isDisposed ( ) { org . eclipse . swt . widgets . Control c = getMessageControl ( ) ; return ( c != null ) && ( c . isDisposed ( ) ) ; } | org . junit . Assert . assertTrue ( list . isDisposed ( ) ) |
testException ( ) { final org . apache . activemq . artemis . utils . SimpleFuture < java . lang . Long > simpleFuture = new org . apache . activemq . artemis . utils . SimpleFutureImpl ( ) ; java . lang . Thread t = new java . lang . Thread ( ) { @ org . apache . activemq . artemis . utils . Override public void run (... | org . junit . Assert . assertTrue ( failed ) |
getNationaliteitTestOK ( ) { final java . lang . String natCode = "0001" ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . Nationaliteit expectedNat = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Nationaliteit ( "Nederlandse" , natCode ) ; final java . lang . String expected = java . lang . S... | org . junit . Assert . assertEquals ( expected , resultNat ) |
testFromHL7NoName ( ) { org . openehealth . ipf . commons . ihe . xds . core . transform . hl7 . Person result = org . openehealth . ipf . commons . ihe . xds . core . transform . hl7 . Hl7v2Based . parse ( "u\\S\\fz^^^^^^^^&1.2\\T\\.3.4&he\\T\\llo_WU\\T\\RZ" , org . openehealth . ipf . commons . ihe . xds . core . tra... | org . junit . Assert . assertEquals ( person , result ) |
testDeclaringTypeOfALambdaReferencedByParameterReference ( ) { final spoon . Launcher launcher = new spoon . Launcher ( ) ; launcher . addInputResource ( "src/test/resources/noclasspath/Foo3.java" ) ; launcher . getEnvironment ( ) . setNoClasspath ( true ) ; launcher . getEnvironment ( ) . setComplianceLevel ( 8 ) ; la... | org . junit . Assert . assertEquals ( p . getSimpleName ( ) , param . getSimpleName ( ) ) |
testEncodeAndReEncodeContainedXml ( ) { org . hl7 . fhir . dstu3 . model . Composition comp = new org . hl7 . fhir . dstu3 . model . Composition ( ) ; comp . addSection ( ) . addEntry ( ) . setResource ( new org . hl7 . fhir . dstu3 . model . AllergyIntolerance ( ) . addNote ( new org . hl7 . fhir . dstu3 . model . Ann... | org . junit . Assert . assertEquals ( 2 , parsed . getContained ( ) . size ( ) ) |
receiveNak ( ) { com . zsmartsystems . zigbee . ZigBeeNetworkManager networkManager = org . mockito . Mockito . mock ( com . zsmartsystems . zigbee . ZigBeeNetworkManager . class ) ; com . zsmartsystems . zigbee . transaction . ZigBeeTransactionManager transactionManager = new com . zsmartsystems . zigbee . transaction... | org . junit . Assert . assertEquals ( rxCommand , transactionManager . receive ( rxCommand ) ) |
appendIfNotExists_A$StringBuilder$String$String_alradyExists ( ) { org . junithelper . core . generator . LineBreakProvider lineBreakProvider = new org . junithelper . core . generator . LineBreakProvider ( config , currentLineBreak ) ; org . junithelper . core . generator . SourceCodeAppender target = new org . junith... | org . junit . Assert . assertEquals ( "" , buf . toString ( ) ) |
tenantIdInheritedFromSuperCaseInstance ( ) { java . lang . String tenantId = org . camunda . bpm . engine . test . api . multitenancy . TenantIdProviderTest . TENANT_ID ; org . camunda . bpm . engine . test . api . multitenancy . TenantIdProviderTest . SetValueOnRootCaseInstanceTenantIdProvider tenantIdProvider = new o... | org . junit . Assert . assertThat ( caseInstance . getTenantId ( ) , org . hamcrest . CoreMatchers . is ( tenantId ) ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . enrolment . type . EnrolmentType context = new org . lnu . is . domain . enrolment . type . EnrolmentType ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>EnrolmentType<sp>e<sp>WHERE<sp>e.crtUserGroup<sp... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
twoEqualsTwo ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( 2 , org . hamcrest . CoreMatchers . equalTo ( 2 ) ) |
testGetMinorVersion_whenVersionCannotBeFound_thenReturnDefaultVersion ( ) { "<AssertPlaceHolder>" ; } getMinorVersion ( java . lang . String ) { if ( version == null ) { return com . hazelcast . simulator . utils . BuildInfoUtils . DEFAULT_FALLBACK_MINOR_VERSION ; } java . lang . String [ ] versions = com . hazelcast .... | org . junit . Assert . assertEquals ( com . hazelcast . simulator . utils . BuildInfoUtils . DEFAULT_FALLBACK_MINOR_VERSION , com . hazelcast . simulator . utils . BuildInfoUtils . getMinorVersion ( null ) ) |
testNoEncryptionMethod ( ) { "<AssertPlaceHolder>" ; } getMethod ( java . lang . String ) { if ( org . apache . commons . lang3 . StringUtils . isBlank ( name ) ) { return org . apache . hadoop . fs . s3a . S3AEncryptionMethods . NONE ; } for ( org . apache . hadoop . fs . s3a . S3AEncryptionMethods v : org . apache . ... | org . junit . Assert . assertEquals ( org . apache . hadoop . fs . s3a . NONE , getMethod ( "<sp>" ) ) |
testImplyNameWithDots ( ) { org . uberfire . security . authz . Permission p1 = new org . uberfire . security . impl . authz . DotNamedPermission ( "resource.read" , true ) ; org . uberfire . security . authz . Permission p2 = new org . uberfire . security . impl . authz . DotNamedPermission ( "resource.read.r1.dot" , ... | org . junit . Assert . assertTrue ( p1 . impliesName ( p2 ) ) |
randomWrites ( ) { org . objectfabric . Workspace workspace = org . objectfabric . Platform . newTestWorkspace ( ) ; final int SIZE = 1000 ; boolean [ ] array = new boolean [ SIZE ] ; org . objectfabric . TIndexedNRead tester = new org . objectfabric . TIndexedNRead ( ) ; tester . setObject ( new org . objectfabric . T... | org . junit . Assert . assertTrue ( ( ( array [ i ] ) == ( tester . getBit ( i ) ) ) ) |
testConvertVDBXML ( ) { org . teiid . runtime . EmbeddedConfiguration ec = new org . teiid . runtime . EmbeddedConfiguration ( ) ; ec . setUseDisk ( false ) ; org . teiid . metadatastore . TestDDLMetadataStore . es . addTranslator ( "file" , new org . teiid . translator . file . FileExecutionFactory ( ) ) ; org . teiid... | org . junit . Assert . assertEquals ( expected , content ) |
testParseField_sequence_value ( ) { org . eclipse . tracecompass . ctf . core . event . types . IDefinition fieldDef = fixture . lookupDefinition ( org . eclipse . tracecompass . tmf . ctf . core . tests . event . CtfTmfEventFieldTest . SEQ ) ; org . eclipse . tracecompass . tmf . ctf . core . event . CtfTmfEventField ... | org . junit . Assert . assertArrayEquals ( expected , values ) |
testUnionCRS ( ) { 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 . Coordin... | org . junit . Assert . assertTrue ( expected . equals ( result ) ) |
testAssociationIndicationStatusValues ( ) { for ( com . digi . xbee . api . models . WiFiAssociationIndicationStatus associationIndicationStatus : associationIndicationStatusValues ) "<AssertPlaceHolder>" ; } getValue ( ) { return idValue ; } | org . junit . Assert . assertTrue ( ( ( associationIndicationStatus . getValue ( ) ) >= 0 ) ) |
unixChronology2 ( ) { net . time4j . format . expert . ChronoFormatter < net . time4j . Moment > cf2 = net . time4j . format . expert . ChronoFormatter . setUp ( net . time4j . Moment . axis ( ) , Locale . ENGLISH ) . addPattern ( "yyyy-MM-dd<sp>HH:mm<sp>zzzz" , PatternType . CLDR ) . build ( ) . withTimezone ( "Europe... | org . junit . Assert . assertThat ( cf1 . format ( instant ) , org . hamcrest . CoreMatchers . is ( expected ) ) |
testArea ( ) { 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 . Coordinate ... | org . junit . Assert . assertTrue ( expected . equals ( result ) ) |
testGetConnectionByExternalIdNoMatches ( ) { java . util . List < com . streamreduce . core . service . Connection > connectionsByExternalId = connectionServiceImpl . getConnectionsByExternalId ( com . streamreduce . core . service . ConnectionServiceImplTest . OTHER_EXTERNAL_ID , sampleUser ) ; "<AssertPlaceHolder>" ;... | org . junit . Assert . assertEquals ( 0 , connectionsByExternalId . size ( ) ) |
testGetMissingValue ( ) { org . apache . gora . store . DataStore < java . lang . String , org . apache . gora . examples . generated . WebPage > store = new org . apache . gora . memory . store . MemStore ( ) ; org . apache . gora . examples . generated . WebPage nullWebPage = store . get ( "missing" , new java . lang... | org . junit . Assert . assertNull ( nullWebPage ) |
resetCircuitBreakerStillHasTripException ( ) { try { impl . invoke ( new org . fishwife . jrugged . TestCircuitBreaker . FailingCallable ( "broken" ) ) ; } catch ( java . lang . Exception e ) { } impl . reset ( ) ; java . lang . Throwable tripException = impl . getTripException ( ) ; "<AssertPlaceHolder>" ; throw tripE... | org . junit . Assert . assertEquals ( "broken" , tripException . getMessage ( ) ) |
doesTargetStorageSupportDiskOfferingTestDiskOfferingTagsNotEmptyAndStorageTagsEmpty ( ) { com . cloud . storage . DiskOfferingVO diskOfferingVoMock = org . mockito . Mockito . mock ( com . cloud . storage . DiskOfferingVO . class ) ; org . mockito . Mockito . doReturn ( "A" ) . when ( diskOfferingVoMock ) . getTags ( )... | org . junit . Assert . assertFalse ( result ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . department . name . DepartmentName context = new org . lnu . is . domain . department . name . DepartmentName ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>DepartmentName<sp>e<sp>WHERE<sp>e.crtUserGro... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
test6 ( ) { edu . cmu . tetrad . test . SemGraph graph = new edu . cmu . tetrad . test . SemGraph ( ) ; graph . setShowErrorTerms ( true ) ; edu . cmu . tetrad . test . Node x1 = new edu . cmu . tetrad . test . ContinuousVariable ( "X1" ) ; edu . cmu . tetrad . test . Node x2 = new edu . cmu . tetrad . test . Continuou... | org . junit . Assert . assertTrue ( isStandardized ( sem ) ) |
testInvalidSettingWithoutLog ( ) { try ( com . liferay . portal . kernel . test . CaptureHandler captureHandler = _testInvalidSetting ( Level . OFF ) ) { java . util . List < java . util . logging . LogRecord > logRecords = captureHandler . getLogRecords ( ) ; "<AssertPlaceHolder>" ; } } toString ( ) { com . liferay . ... | org . junit . Assert . assertTrue ( logRecords . toString ( ) , logRecords . isEmpty ( ) ) |
testNoMatch04 ( ) { boolean matchResult = variableNamePatternMatcher . matchesEndToEnd ( "a<sp>b" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; } | org . junit . Assert . assertFalse ( matchResult ) |
findReturnsParentVersionWhenChildWithLowerVersionAndParentWithHigherVersion ( ) { when ( mavenProject . hasParent ( ) ) . thenReturn ( true ) ; when ( mavenProject . getParent ( ) ) . thenReturn ( parentMavenProject ) ; when ( mavenProject . getPrerequisites ( ) ) . thenReturn ( prerequisites ) ; java . lang . String c... | org . junit . Assert . assertEquals ( parentArtifactVersion , new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) ) |
newRightResult_noLeftMatches ( ) { final org . apache . rya . api . function . join . IterativeJoin leftOuterJoin = new org . apache . rya . api . function . join . LeftOuterJoin ( ) ; final java . util . Iterator < org . apache . rya . api . model . VisibilityBindingSet > leftResults = new java . util . ArrayList < or... | org . junit . Assert . assertFalse ( newJoinResultsIt . hasNext ( ) ) |
testGetRoot ( ) { fr . inria . soctrace . lib . query . hierarchy . EPHierarchyDescMap map = new fr . inria . soctrace . lib . query . hierarchy . EPHierarchyDescMap ( ) ; map . load ( traceDB ) ; fr . inria . soctrace . lib . query . hierarchy . EPHierarchyDesc root = map . getRoot ( ) ; "<AssertPlaceHolder>" ; } getE... | org . junit . Assert . assertNull ( root . getEventProducer ( ) ) |
verify_junit_version ( ) { java . lang . String ver = org . gridkit . nanocloud . test . maven . MavenClasspathManager . getArtifactVersion ( "junit" , "junit" ) ; System . out . println ( ( "verify_junit_version:<sp>" + ver ) ) ; "<AssertPlaceHolder>" ; } getArtifactVersion ( java . lang . String , java . lang . Strin... | org . junit . Assert . assertTrue ( ( ver != null ) ) |
testHasNext ( ) { brown . tracingplane . baggageprotocol . BaggageReader reader = makeBaggage ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( ( nexta ) != null ) || ( ( nextb ) != null ) ; } | org . junit . Assert . assertFalse ( reader . hasNext ( ) ) |
universalModelIsModifiedByMergeVoicePrintMethod ( ) { final double [ ] voiceSample2 = new double [ 1024 ] ; fillWithNoise ( voiceSample2 ) ; recognito . createVoicePrint ( "1" , voiceSample ) ; com . bitsinharmony . recognito . VoicePrint universalModel = recognito . getUniversalModel ( ) ; recognito . mergeVoiceSample... | org . junit . Assert . assertThat ( distance , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( Double . MAX_VALUE ) ) ) |
testNieuweMarshallingContext ( ) { final nl . bzk . brp . levering . business . bericht . MarshallingContextFactoryImpl marshallingContextFactory = new nl . bzk . brp . levering . business . bericht . MarshallingContextFactoryImpl ( ) ; final org . jibx . runtime . IMarshallingContext iMarshallingContext = marshallingC... | org . junit . Assert . assertNotNull ( iMarshallingContext ) |
validate_shouldFailValidationIfSelectMultipleIsNull ( ) { org . openmrs . Field ff = new org . openmrs . Field ( ) ; ff . setName ( "good" ) ; org . openmrs . FieldType ft = new org . openmrs . FieldType ( ) ; ft . setFieldTypeId ( - 559035650 ) ; java . lang . Boolean retired = Boolean . FALSE ; ff . setFieldType ( ft... | org . junit . Assert . assertTrue ( errors . hasFieldErrors ( "selectMultiple" ) ) |
testAudio ( ) { comparator . compare ( sd1 , sd2 ) ; org . restcomm . media . core . sdp . format . RTPFormats fmts = comparator . getAudio ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . parameters . size ( ) ; } | org . junit . Assert . assertEquals ( 2 , fmts . size ( ) ) |
testTint_withZeroTintFactor ( ) { final java . awt . Color color = new java . awt . Color ( 0 , 0 , 0 ) ; final java . awt . Color tintedColor = com . valkryst . VTerminal . misc . ColorFunctions . tint ( color , 0 ) ; "<AssertPlaceHolder>" ; } tint ( java . awt . Color , double ) { if ( tintFactor > 1.0 ) { tintFactor... | org . junit . Assert . assertEquals ( color , tintedColor ) |
testDeleteCustomDdl ( ) { org . finra . herd . model . api . xml . CustomDdlKey customDdlKey = new org . finra . herd . model . api . xml . CustomDdlKey ( NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , CUSTOM_DDL_NAME ) ; org . finra . herd . model . api . xml . CustomDdl customDdl... | org . junit . Assert . assertEquals ( customDdl , deletedCustomDdl ) |
manageDeletionProcess_VSYSTEM_DELETION_REQUESTED_NextStatusNotNormal ( ) { doReturn ( Boolean . FALSE ) . when ( vSystemProcessor ) . checkNextStatus ( org . oscm . app . iaas . VSystemProcessorBeanTest . CONTROLLER_ID , org . oscm . app . iaas . VSystemProcessorBeanTest . INSTANCE_ID , FlowState . VSERVERS_STOPPING , ... | org . junit . Assert . assertNull ( newState ) |
shouldAcquirePartitions ( ) { final int nonAcquiredPartitionId = cs . bilkent . joker . engine . kvstore . impl . PartitionedOperatorKVStoreRebalancingTest . NON_ACQUIRED_PARTITIONS . get ( 0 ) ; final cs . bilkent . joker . operator . Tuple tuple = generateTuple ( nonAcquiredPartitionId , keys ) ; final cs . bilkent .... | org . junit . Assert . assertEquals ( "val" , operatorKVStore . getKVStore ( cs . bilkent . joker . engine . kvstore . impl . PartitionedOperatorKVStoreRebalancingTest . EXTRACTOR . getPartitionKey ( tuple ) ) . get ( "key" ) ) |
testPutAll ( ) { java . util . HashMap < java . lang . Object , java . lang . Object > map = new java . util . HashMap < java . lang . Object , java . lang . Object > ( ) ; map . put ( "key1" , "value1" ) ; map . put ( "key2" , "value2" ) ; memcache . putAll ( map ) ; for ( Map . Entry < java . lang . Object , java . l... | org . junit . Assert . assertEquals ( entry . getValue ( ) , memcache . get ( entry . getKey ( ) ) ) |
testJsonBody_MultipleParams_SimpleAndComplexTypes ( ) { java . util . HashMap < java . lang . String , java . lang . Object > toSend = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; java . lang . String nameOne = "Alice" ; java . lang . String nameTwo = "Anne" ; int howMany = 3 ; tests ... | org . junit . Assert . assertEquals ( result , expectedResult ) |
testAddOrUpdateOnExistingRule_shouldWork ( ) { ruleManager . add ( id [ 0 ] , code [ 0 ] ) ; ruleManager . addOrUpdate ( id [ 1 ] , code [ 1 ] ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { com . google . common . base . Preconditions . checkNotNull ( key , "key<sp>is<sp>null" ) ; return values . get ( ke... | org . junit . Assert . assertThat ( ruleManager . get ( id [ 0 ] ) , org . hamcrest . CoreMatchers . is ( code [ 1 ] ) ) |
testIsBindableWhenTableIsAnExtendedEntryAndConstraintValueIsTypeFormula ( ) { doReturn ( BaseSingleFieldConstraint . TYPE_RET_VALUE ) . when ( plugin ) . constraintValue ( ) ; doReturn ( GuidedDecisionTable52 . TableFormat . EXTENDED_ENTRY ) . when ( model ) . getTableFormat ( ) ; "<AssertPlaceHolder>" ; } isBindable (... | org . junit . Assert . assertTrue ( plugin . isBindable ( ) ) |
testGetFloatProperty ( ) { org . apache . qpid . jms . message . JmsMessage msg = factory . createMessage ( ) ; java . lang . String name = "floatProperty" ; msg . setFloatProperty ( name , 1.3F ) ; "<AssertPlaceHolder>" ; } getFloatProperty ( java . lang . String ) { try { return convertPropertyTo ( name , messageProp... | org . junit . Assert . assertTrue ( ( ( msg . getFloatProperty ( name ) ) == 1.3F ) ) |
testMarshallingUnMarshalling ( ) { javax . xml . bind . JAXBContext context = javax . xml . bind . JAXBContext . newInstance ( org . opennaas . core . resources . ResourceIdentifier . class ) ; java . io . StringWriter writer = new java . io . StringWriter ( ) ; javax . xml . bind . Marshaller m = context . createMarsh... | org . junit . Assert . assertEquals ( resourceIdentifier , loaded ) |
testGetName ( ) { java . lang . String name = "name" ; org . bff . javampd . art . MPDArtwork artwork = new org . bff . javampd . art . MPDArtwork ( name , "path" ) ; "<AssertPlaceHolder>" ; } getName ( ) { if ( ( ( super . getName ( ) ) == null ) || ( "" . equals ( super . getName ( ) ) ) ) { return getTitle ( ) ; } e... | org . junit . Assert . assertEquals ( name , artwork . getName ( ) ) |
testAnalyzeSelectStatement_OK_ColumnReferenceAndColumnAliasAndTableAlias ( ) { final java . lang . String sql = "SELECT<sp>STU.`ID`<sp>AS<sp>STU_ID,<sp>`NAME`<sp>FROM<sp>STUDENT<sp>STU" ; final org . codefamily . crabs . jdbc . lang . Statement actual = org . codefamily . crabs . jdbc . compiler . GrammarAnalyzer . ana... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetFieldsReplacesResultFieldIfItExists ( ) { org . pentaho . di . trans . steps . regexeval . RegexEvalMeta regexEvalMeta = new org . pentaho . di . trans . steps . regexeval . RegexEvalMeta ( ) ; java . lang . String name = "TEST_NAME" ; java . lang . String resultField = "result" ; regexEvalMeta . setResultFieldN... | org . junit . Assert . assertEquals ( mockName , captor . getValue ( ) . getName ( ) ) |
testNoMatch06 ( ) { boolean matchResult = variableNamePatternMatcher . matchesEndToEnd ( "a.b.c<sp>d" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; } | org . junit . Assert . assertFalse ( matchResult ) |
testCreateObject_NoArgs_NoVars ( ) { final net . greghaines . jesque . utils . TestReflectionUtils . SetterObj obj = net . greghaines . jesque . utils . ReflectionUtils . createObject ( net . greghaines . jesque . utils . TestReflectionUtils . SetterObj . class , null , null ) ; "<AssertPlaceHolder>" ; } createObject (... | org . junit . Assert . assertNotNull ( obj ) |
editorNullInCaseOfReindex ( ) { org . apache . jackrabbit . oak . plugins . index . lucene . LuceneIndexEditorProvider editorProvider = new org . apache . jackrabbit . oak . plugins . index . lucene . LuceneIndexEditorProvider ( null , null , null , null , org . apache . jackrabbit . oak . spi . mount . Mounts . defaul... | org . junit . Assert . assertNull ( editor ) |
Query13Test ( ) { org . verdictdb . core . sqlobject . BaseTable customer = new org . verdictdb . core . sqlobject . BaseTable ( "tpch" , "`c_count`<sp>" 6 , "`c_count`<sp>" 8 ) ; org . verdictdb . core . sqlobject . BaseTable orders = new org . verdictdb . core . sqlobject . BaseTable ( "tpch" , "tpch" 6 , "o" ) ; org... | org . junit . Assert . assertEquals ( expected , actual ) |
generateTuplesWithKeyAndKeyValueScheme ( ) { config . scheme = new storm . kafka . KeyValueSchemeAsMultiScheme ( new storm . kafka . StringKeyValueScheme ( ) ) ; java . lang . String value = "value" ; java . lang . String key = "key" ; createTopicAndSendMessage ( key , value ) ; kafka . javaapi . message . ByteBufferMe... | org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableMap . of ( key , value ) , lists . iterator ( ) . next ( ) . get ( 0 ) ) |
shouldUseOverridenNamingStrategyMap ( ) { final java . lang . String mockAlias = "mock" ; victim = new ro . isdc . wro . model . resource . support . naming . ConfigurableNamingStrategy ( ) { @ ro . isdc . wro . model . resource . support . naming . Override protected void overrideDefaultStrategyMap ( final java . util... | org . junit . Assert . assertSame ( mockNamingStrategy , actual ) |
testGetViewportGridAttachedToLayer ( ) { doReturn ( gridParent ) . when ( grid ) . getParent ( ) ; doReturn ( viewport ) . when ( gridParent ) . getViewport ( ) ; "<AssertPlaceHolder>" ; } getParent ( ) { return parent ; } | org . junit . Assert . assertEquals ( viewport , grid . getViewport ( ) ) |
testGetUsers ( ) { org . osgi . service . useradmin . User user1 = org . mockito . Mockito . mock ( org . osgi . service . useradmin . User . class ) ; org . mockito . Mockito . when ( user1 . getType ( ) ) . thenReturn ( Role . USER ) ; org . mockito . Mockito . when ( user1 . getName ( ) ) . thenReturn ( "user1" ) ; ... | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "user1" } , roles ) |
testTruthFile ( ) { java . io . File truthFile = org . apache . poi . hssf . HSSFTestDataSamples . getSampleFile ( "54686_fraction_formats.txt" ) ; java . io . BufferedReader reader = new java . io . BufferedReader ( new java . io . InputStreamReader ( new java . io . FileInputStream ( truthFile ) , org . apache . poi ... | org . junit . Assert . assertEquals ( testKey , truth , formatted ) |
testDeleteProductByProductId ( ) { try { java . lang . Integer deleteResult = runFlowAndGetPayload ( "delete-product-by-product-id" ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( org . mule . modules . tests . ConnectorTestUtils . getStackTrace ( e ) ) ; } } | org . junit . Assert . assertNotNull ( deleteResult ) |
testGetIdOfWebElementAddedTwice ( ) { io . selendroid . server . model . KnownElements ke = new io . selendroid . server . model . KnownElements ( ) ; io . selendroid . server . model . AndroidElement element = createWebElement ( ":wdc:1234" , ke ) ; java . lang . String id = ke . add ( element ) ; ke . add ( createWeb... | org . junit . Assert . assertEquals ( id , ke . getIdOfElement ( element ) ) |
testTrainC_ClassificationDataSet_ExecutorService ( ) { System . out . println ( "trainC" ) ; jsat . classifiers . linear . kernelized . ALMA2K instance = new jsat . classifiers . linear . kernelized . ALMA2K ( new jsat . distributions . kernels . RBFKernel ( 0.5 ) , 0.8 ) ; jsat . classifiers . ClassificationDataSet tr... | org . junit . Assert . assertEquals ( 0 , cme . getErrorRate ( ) , 0.0 ) |
testSkippableCommandFailureDoesNotAbortNextStage ( ) { org . apache . ambari . server . actionmanager . Stage previousStage = createMock ( org . apache . ambari . server . actionmanager . Stage . class ) ; org . apache . ambari . server . actionmanager . Stage nextStage = createMock ( org . apache . ambari . server . a... | org . junit . Assert . assertFalse ( ( ( java . lang . Boolean ) ( result ) ) ) |
testTimeoutIsIgnoredIfConsumerDoesNotSupportTimeout ( ) { java . util . Date _time = new java . util . Date ( java . lang . System . currentTimeMillis ( ) ) ; org . omg . CORBA . Any _any = getClientORB ( ) . create_any ( ) ; org . omg . TimeBase . UtcTHelper . insert ( _any , org . jacorb . util . Time . corbaTime ( _... | org . junit . Assert . assertFalse ( objectUnderTest_ . hasStopTime ( ) ) |
testBookExistsMalformedMt ( ) { org . apache . cxf . jaxrs . client . WebClient wc = org . apache . cxf . jaxrs . client . WebClient . create ( ( ( "http://localhost:" + ( org . apache . cxf . systest . jaxrs . JAXRSClientServerBookTest . PORT ) ) + "/bookstore/books/check/malformedmt/123" ) ) ; wc . accept ( MediaType... | org . junit . Assert . assertTrue ( wc . get ( org . apache . cxf . systest . jaxrs . Boolean . class ) ) |
shouldInitTransactions ( ) { buildMockProducer ( true ) ; producer . initTransactions ( ) ; "<AssertPlaceHolder>" ; } transactionInitialized ( ) { return this . transactionInitialized ; } | org . junit . Assert . assertTrue ( producer . transactionInitialized ( ) ) |
testExplicitProvider ( ) { javax . net . ssl . TrustManagerFactory factory = javax . net . ssl . TrustManagerFactory . getInstance ( javax . net . ssl . TrustManagerFactory . getDefaultAlgorithm ( ) ) ; factoryBean . setProvider ( factory . getProvider ( ) . getName ( ) ) ; "<AssertPlaceHolder>" ; } createTrustManagerF... | org . junit . Assert . assertNotNull ( factoryBean . createTrustManagerFactory ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.